Skip to main content
POST
Evaluate Document Completeness

Authorizations

Authorization
string
header
required

Input your token

Scopes

bearer

Headers

Tenant-Name
string
required

Identifies a distinct entity within Corti's multi-tenant system. Ensures correct routing and authentication of the request.

Example:

"base"

Body

application/json
language
string
required

The language of the documents, as a BCP-47 language tag. For example en or en-US.

Example:

"en"

candidateDocument
object
required

A document. Each key is a section ID. Each value is the text of that section. Section IDs must not be empty.

The API processes the sections in the order of the request. The spans and claims in the response are in the order of the sections in the request, and then in the order in the text.

Example:
referenceDocument
object
required

A document. Each key is a section ID. Each value is the text of that section. Section IDs must not be empty.

The API processes the sections in the order of the request. The spans and claims in the response are in the order of the sections in the request, and then in the order in the text.

Example:
referenceAnnotations
object[]

Annotations on the sentences of the reference document. Get the spans from the Segment Document operation. The API ignores an annotation that does not have the same sectionId, start, end and text as a sentence. The annotation_coverage slice shows how many sentences have an annotation.

Response

The scores and a list of claims, each claim corresponding to one sentence from the reference document.

score
number<double>
required

The mean value of the verdicts. A grounded verdict is 1, a partial verdict is 0.5 and an ungrounded verdict is 0. When all claims are not_applicable, the score is 1.

Required range: 0 <= x <= 1
strictScore
number<double>
required

The same as score, but a partial verdict is 0.

Required range: 0 <= x <= 1
looseScore
number<double>
required

The same as score, but a partial verdict is 1.

Required range: 0 <= x <= 1
evaluationConfigHash
string
required

A SHA-256 hash of the evaluation configuration: the language model, the prompt and the parameters of the language model. The hash does not include the content of the request. Compare scores only when they have the same hash.

Example:

"sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"

usageInfo
object
required

Credits consumed for this request.

claims
object[]
required
annotationSlices
object[]

The scores for groups of annotated sentences. The response contains this field only when the request contains referenceAnnotations.