approved, rejected or deferred, with a confidence, the reasoning and any structured data your workflow needs. Annotations turn retriever results into verified decisions: medical coding review, brand infringement triage, content moderation, duplicate confirmation. They are stored apart from the documents and never change document data. For implicit signals such as clicks and dwell time, use interactions instead.
Prerequisites: a namespace with a collection of documents, and usually a retriever whose results people review.
Record a decision
1
Create the annotation
document_id and label are required. Labels are free-form strings; the rest is optional.2
Build a review queue
List annotations with any combination of
document_id, collection_id, label, actor_id, retriever_id, target_kind and as_of in the body. skip and limit are query parameters.cURL
3
Update a decision when it is revisited
cURL
Fields
Judge part of a result
target narrows a judgment:
Filter on the kind with
target_kind: document, execution, object, span, region, rank or expected.
Check it worked
Label counts power progress bars and dashboards:cURL
Response
GET /v1/annotations/{annotation_id}/versions lists an annotation’s edits; /versions/{version} returns the full state at one version. Every create, update and delete also emits a webhook event (annotation.created, annotation.updated, annotation.deleted) and an entry in the audit log.
Read the judgment set at a past instant
Passas_of to list annotations as they stood at that moment. Annotations created later are left out, and each remaining one is rewound to its state at that time. An evaluation that pins one as_of reads the identical judgment set weeks later, after reviewers have added and revised decisions.
cURL
version it held at that instant, and its revisions contain only earlier versions. Compare version across two as_of reads to see which decisions moved.
Bulk changes
POST /v1/annotations/bulk takes up to 1,000 creates, updates and deletes in one call. Each operation is independent, so one failure does not roll back the rest; the response has created_count, updated_count, deleted_count, failed_count and a per-operation results list to retry from.
cURL
What goes wrong
Related
- Relevance and evaluation: use judgments to measure retriever quality
- Alerts, triggers and webhooks: act on annotation events
- Create annotation and List annotations in the API reference

