Skip to main content
POST
Compare Documents using PDSQI-9

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

The two documents to compare. Both documents must come from the same sourceContext. The winners in the response use a for documentA and b for documentB.

documentA
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:
documentB
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:
sourceContext
object
required

The source that both documents came from. A transcript or a text string. The API does not split the source context into sentences. It passes the source context to the language model as-is.

Response

The winner of each PDSQI-9 domain (excluding citations).

winners
object
required

One verdict per PDSQI-9 documentation quality domain, resolved over both orderings. The citations domain of the PDSQI-9 instrument is dropped because most documents do not cite sources. The domains:

  • accurate: The document is true and does not contain incorrect information.
  • thorough: The document is complete and records all issues of importance.
  • useful: The information is relevant to the target reader, at the right level of detail.
  • organized: The document is well-structured so that the reader can follow the information.
  • comprehensible: The language is clear, plain and familiar to the target reader.
  • succinct: The document captures each statement in the fewest words, without redundancy.
  • synthesized: The document reflects understanding of the scenario.
  • stigmatizing: The document avoids stigmatizing language.
evaluationConfigHash
string
required

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

Example:

"sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"

usageInfo
object
required

Credits consumed for this request.