VocalDocscontracts 1.65.0

Read an Evaluation

GET /v1/knowledge-bases/{knowledge_base_id}/evaluations/{evaluation_id}

PropertyValue
Operationget_knowledge_evaluation
GroupKnowledge bases
Scopeknowledge:read
Route classread
IdempotencyNo Idempotency-Key
AuditNot audited: A metadata read; an Evaluation holds ids, ranks and scores only.
Released in1.53.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Answers one Evaluation with its metrics, its per-query ranks and scores by id, the thresholds it applied and its gate outcome (1.53.0); never a query or a passage.

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the knowledge:read scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl "$VOCAL_API/v1/knowledge-bases/kb_.../evaluations/kev_..." \
  -H "Authorization: Bearer $VOCAL_API_KEY"

Parameters

NameInTypeRequiredDescription
knowledge_base_idpathKnowledgeBaseIdyesThe id of a Knowledge base: kb_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.
evaluation_idpathKnowledgeEvaluationIdyesThe id of an Evaluation of a Knowledge base version or its working set: kev_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.

Responses

StatusContent typeShapeError codes
200application/jsonKnowledgeEvaluation
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden
404application/jsonErrorEnvelopenot_found
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is KnowledgeEvaluation.

FieldTypeRequiredDescription
baselineKnowledgeEvaluationBaseline or nullyesNull when no version is active or the active one has no completed Evaluation, so no relative check applied.
corpus_sha256stringyesThe digest of the ids and revisions of the corpus queries it ran.
created_atTimestampyes
created_byActorRef or nullyesWho asked for it; null when an automatic publish ran it after a sync.
error_codestring or nullyesWhy it failed, such as embedding_failed; null otherwise.
failing_checksarray of KnowledgeGateCheckyesThe checks the metrics fail, also when the outcome is advisory.
finished_atTimestamp or nullyes
gateKnowledgeGateOutcome or nullyespassed, failed or advisory once completed (knowledgeGateOutcome); null before.
idKnowledgeEvaluationIdyes
job_idJobIdyesThe knowledge.evaluation job that runs it.
knowledge_base_idKnowledgeBaseIdyes
manifest_sha256stringyesThe digest of the Document revisions and configuration it searched; a publish compares it with the working set.
metricsKnowledgeEvaluationMetrics or nullyesNull until completed.
object"knowledge_evaluation"yes
resultsarray of KnowledgeEvalResultyes
started_atTimestamp or nullyes
statusKnowledgeEvaluationStatusyes
thresholdsKnowledgeGateThresholdsyes
top_kintegeryes
versioninteger or nullyesThe version evaluated; null for the working set.