Single Comparison
Get a specific field comparison filtered by document and field name. Returns a single N-Shot comparison for detailed evaluation.
Retrieve a single N-Shot comparison for a specific document and field. Use this endpoint when you need detailed information about one particular comparison, including per-shot values, any existing override, and the LLM judge recommendation.
/v1/jobs/runs/{runId}/nshot/comparisonResponse
Response fields
Response
{
"id": "cmp-uuid-1",
"run_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"document_id": "doc-uuid-1",
"field_name": "total_amount",
"status": "yellow",
"agreement_score": 0.6667,
"majority_value": "12450.00",
"comparison_method": "exact",
"values": [
{ "shot_number": 1, "value": "12450.00" },
{ "shot_number": 2, "value": "12450.00" },
{ "shot_number": 3, "value": "12,450.00" }
],
"override": null,
"judgement": {
"recommended_shot": 1,
"recommended_value": "12450.00",
"accepted": null,
"decided_by": null,
"decided_at": null
},
"created_at": "2024-09-14T10:32:00.000Z",
"links": {
"self": "/v1/jobs/runs/a1b2c3d4-e5f6-7890-abcd-ef1234567890/nshot/comparison?document_id=doc-uuid-1&field_name=total_amount"
}
}This endpoint is typically called after identifying a problematic comparison in the GET /v1/jobs/runs/{runId}/nshot/comparisons list. Inspect the values array to see what each shot extracted, then check the judgement object for the LLM's recommendation. If judgement.accepted is null, you can submit a decision via POST /v1/jobs/runs/{runId}/nshot/judge-decision.
Errors
Error responses