import PiClient from 'withpi';
const client = new PiClient({
apiKey: 'My API Key',
});
const syntheticDataStatus = await client.data.generateInputResponsePairs.retrieve('job_id');
console.log(syntheticDataStatus.job_id);
Copy
{
"data": [
{
"llm_input": "Tell me something different",
"llm_output": "The lazy dog was jumped over by the quick brown fox"
},
{
"llm_input": "Write a short poem",
"llm_output": "Moonlight dancing on waves,\nStars whisper ancient tales,\nNight's gentle embrace"
}
],
"detailed_status": [
"Downloading model",
"Tuning prompt"
],
"job_id": "1234abcd",
"state": "RUNNING"
}
Generate Input/Response Pairs
Retrieve
Checks the status of a Generation Input-Response Pairs job
GET
/
data
/
generate_input_response_pairs
/
{job_id}
JavaScript
Copy
import PiClient from 'withpi';
const client = new PiClient({
apiKey: 'My API Key',
});
const syntheticDataStatus = await client.data.generateInputResponsePairs.retrieve('job_id');
console.log(syntheticDataStatus.job_id);
Copy
{
"data": [
{
"llm_input": "Tell me something different",
"llm_output": "The lazy dog was jumped over by the quick brown fox"
},
{
"llm_input": "Write a short poem",
"llm_output": "Moonlight dancing on waves,\nStars whisper ancient tales,\nNight's gentle embrace"
}
],
"detailed_status": [
"Downloading model",
"Tuning prompt"
],
"job_id": "1234abcd",
"state": "RUNNING"
}