Get Classification Job Results
Deprecated
client.classifier.jobs.getResults(stringclassifyJobID, JobGetResultsParams { organization_id, project_id } query?, RequestOptionsoptions?): JobGetResultsResponse { items, next_page_token, total_size }
GET/api/v1/classifier/jobs/{classify_job_id}/results
Get the results of a classify job. Experimental: This endpoint is not yet ready for production use and is subject to change at any time.
Get Classification Job Results
import LlamaCloud from '@llamaindex/llama-cloud';
const client = new LlamaCloud({
apiKey: process.env['LLAMA_CLOUD_API_KEY'], // This is the default and can be omitted
});
const response = await client.classifier.jobs.getResults('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(response.items);{
"items": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"classify_job_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"file_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"result": {
"confidence": 0,
"reasoning": "reasoning",
"type": "type"
},
"updated_at": "2019-12-27T18:11:19.117Z"
}
],
"next_page_token": "next_page_token",
"total_size": 0
}Returns Examples
{
"items": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"classify_job_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"file_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"result": {
"confidence": 0,
"reasoning": "reasoning",
"type": "type"
},
"updated_at": "2019-12-27T18:11:19.117Z"
}
],
"next_page_token": "next_page_token",
"total_size": 0
}