curl --request POST \
--url https://api.{environment}.corti.app/v2/tools/evaluations/text/documents/pairwise/pdsqi9 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Tenant-Name: <tenant-name>' \
--data @- <<EOF
{
"documentA": {
"subjective": "The patient woke with left arm weakness.",
"objective": "Left arm strength 4/5. No facial asymmetry."
},
"documentB": {
"subjective": "The patient woke unable to move the left arm and reports the weakness started this morning.",
"objective": "Left arm strength 4/5. No facial asymmetry."
},
"sourceContext": {
"type": "text",
"text": "I woke up this morning and couldn't move my left arm."
}
}
EOF
const options = {
method: 'POST',
headers: {
'Tenant-Name': '<tenant-name>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
documentA: {
subjective: 'The patient woke with left arm weakness.',
objective: 'Left arm strength 4/5. No facial asymmetry.'
},
documentB: {
subjective: 'The patient woke unable to move the left arm and reports the weakness started this morning.',
objective: 'Left arm strength 4/5. No facial asymmetry.'
},
sourceContext: {type: 'text', text: 'I woke up this morning and couldn\'t move my left arm.'}
})
};
fetch('https://api.{environment}.corti.app/v2/tools/evaluations/text/documents/pairwise/pdsqi9', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
using RestSharp;
var options = new RestClientOptions("https://api.{environment}.corti.app/v2/tools/evaluations/text/documents/pairwise/pdsqi9");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Tenant-Name", "<tenant-name>");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"documentA\": {\n \"subjective\": \"The patient woke with left arm weakness.\",\n \"objective\": \"Left arm strength 4/5. No facial asymmetry.\"\n },\n \"documentB\": {\n \"subjective\": \"The patient woke unable to move the left arm and reports the weakness started this morning.\",\n \"objective\": \"Left arm strength 4/5. No facial asymmetry.\"\n },\n \"sourceContext\": {\n \"type\": \"text\",\n \"text\": \"I woke up this morning and couldn't move my left arm.\"\n }\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
import requests
url = "https://api.{environment}.corti.app/v2/tools/evaluations/text/documents/pairwise/pdsqi9"
payload = {
"documentA": {
"subjective": "The patient woke with left arm weakness.",
"objective": "Left arm strength 4/5. No facial asymmetry."
},
"documentB": {
"subjective": "The patient woke unable to move the left arm and reports the weakness started this morning.",
"objective": "Left arm strength 4/5. No facial asymmetry."
},
"sourceContext": {
"type": "text",
"text": "I woke up this morning and couldn't move my left arm."
}
}
headers = {
"Tenant-Name": "<tenant-name>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.{environment}.corti.app/v2/tools/evaluations/text/documents/pairwise/pdsqi9",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'documentA' => [
'subjective' => 'The patient woke with left arm weakness.',
'objective' => 'Left arm strength 4/5. No facial asymmetry.'
],
'documentB' => [
'subjective' => 'The patient woke unable to move the left arm and reports the weakness started this morning.',
'objective' => 'Left arm strength 4/5. No facial asymmetry.'
],
'sourceContext' => [
'type' => 'text',
'text' => 'I woke up this morning and couldn\'t move my left arm.'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Tenant-Name: <tenant-name>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.{environment}.corti.app/v2/tools/evaluations/text/documents/pairwise/pdsqi9"
payload := strings.NewReader("{\n \"documentA\": {\n \"subjective\": \"The patient woke with left arm weakness.\",\n \"objective\": \"Left arm strength 4/5. No facial asymmetry.\"\n },\n \"documentB\": {\n \"subjective\": \"The patient woke unable to move the left arm and reports the weakness started this morning.\",\n \"objective\": \"Left arm strength 4/5. No facial asymmetry.\"\n },\n \"sourceContext\": {\n \"type\": \"text\",\n \"text\": \"I woke up this morning and couldn't move my left arm.\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Tenant-Name", "<tenant-name>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.post("https://api.{environment}.corti.app/v2/tools/evaluations/text/documents/pairwise/pdsqi9")
.header("Tenant-Name", "<tenant-name>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"documentA\": {\n \"subjective\": \"The patient woke with left arm weakness.\",\n \"objective\": \"Left arm strength 4/5. No facial asymmetry.\"\n },\n \"documentB\": {\n \"subjective\": \"The patient woke unable to move the left arm and reports the weakness started this morning.\",\n \"objective\": \"Left arm strength 4/5. No facial asymmetry.\"\n },\n \"sourceContext\": {\n \"type\": \"text\",\n \"text\": \"I woke up this morning and couldn't move my left arm.\"\n }\n}")
.asString();
Compares two documents against each other on eight documentation quality domains of PDSQI-9 (Provider Documentation Summarization Quality Instrument).
The citations domain is dropped because most documents do not cite sources. The PDSQI-9 naming is kept.
The two documents must come from the same sourceContext.
The API shows both documents to a language model twice, with the order of the documents swapped.
A domain has a winner only when both orderings agree. This mitigates the position bias of the language model.
This operation uses a language model. It uses credits.
POST
/
tools
/
evaluations
/
text
/
documents
/
pairwise
/
pdsqi9
Compare Documents using PDSQI-9
curl --request POST \
--url https://api.{environment}.corti.app/v2/tools/evaluations/text/documents/pairwise/pdsqi9 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Tenant-Name: <tenant-name>' \
--data @- <<EOF
{
"documentA": {
"subjective": "The patient woke with left arm weakness.",
"objective": "Left arm strength 4/5. No facial asymmetry."
},
"documentB": {
"subjective": "The patient woke unable to move the left arm and reports the weakness started this morning.",
"objective": "Left arm strength 4/5. No facial asymmetry."
},
"sourceContext": {
"type": "text",
"text": "I woke up this morning and couldn't move my left arm."
}
}
EOF
const options = {
method: 'POST',
headers: {
'Tenant-Name': '<tenant-name>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
documentA: {
subjective: 'The patient woke with left arm weakness.',
objective: 'Left arm strength 4/5. No facial asymmetry.'
},
documentB: {
subjective: 'The patient woke unable to move the left arm and reports the weakness started this morning.',
objective: 'Left arm strength 4/5. No facial asymmetry.'
},
sourceContext: {type: 'text', text: 'I woke up this morning and couldn\'t move my left arm.'}
})
};
fetch('https://api.{environment}.corti.app/v2/tools/evaluations/text/documents/pairwise/pdsqi9', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
using RestSharp;
var options = new RestClientOptions("https://api.{environment}.corti.app/v2/tools/evaluations/text/documents/pairwise/pdsqi9");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Tenant-Name", "<tenant-name>");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"documentA\": {\n \"subjective\": \"The patient woke with left arm weakness.\",\n \"objective\": \"Left arm strength 4/5. No facial asymmetry.\"\n },\n \"documentB\": {\n \"subjective\": \"The patient woke unable to move the left arm and reports the weakness started this morning.\",\n \"objective\": \"Left arm strength 4/5. No facial asymmetry.\"\n },\n \"sourceContext\": {\n \"type\": \"text\",\n \"text\": \"I woke up this morning and couldn't move my left arm.\"\n }\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
import requests
url = "https://api.{environment}.corti.app/v2/tools/evaluations/text/documents/pairwise/pdsqi9"
payload = {
"documentA": {
"subjective": "The patient woke with left arm weakness.",
"objective": "Left arm strength 4/5. No facial asymmetry."
},
"documentB": {
"subjective": "The patient woke unable to move the left arm and reports the weakness started this morning.",
"objective": "Left arm strength 4/5. No facial asymmetry."
},
"sourceContext": {
"type": "text",
"text": "I woke up this morning and couldn't move my left arm."
}
}
headers = {
"Tenant-Name": "<tenant-name>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.{environment}.corti.app/v2/tools/evaluations/text/documents/pairwise/pdsqi9",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'documentA' => [
'subjective' => 'The patient woke with left arm weakness.',
'objective' => 'Left arm strength 4/5. No facial asymmetry.'
],
'documentB' => [
'subjective' => 'The patient woke unable to move the left arm and reports the weakness started this morning.',
'objective' => 'Left arm strength 4/5. No facial asymmetry.'
],
'sourceContext' => [
'type' => 'text',
'text' => 'I woke up this morning and couldn\'t move my left arm.'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Tenant-Name: <tenant-name>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.{environment}.corti.app/v2/tools/evaluations/text/documents/pairwise/pdsqi9"
payload := strings.NewReader("{\n \"documentA\": {\n \"subjective\": \"The patient woke with left arm weakness.\",\n \"objective\": \"Left arm strength 4/5. No facial asymmetry.\"\n },\n \"documentB\": {\n \"subjective\": \"The patient woke unable to move the left arm and reports the weakness started this morning.\",\n \"objective\": \"Left arm strength 4/5. No facial asymmetry.\"\n },\n \"sourceContext\": {\n \"type\": \"text\",\n \"text\": \"I woke up this morning and couldn't move my left arm.\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Tenant-Name", "<tenant-name>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.post("https://api.{environment}.corti.app/v2/tools/evaluations/text/documents/pairwise/pdsqi9")
.header("Tenant-Name", "<tenant-name>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"documentA\": {\n \"subjective\": \"The patient woke with left arm weakness.\",\n \"objective\": \"Left arm strength 4/5. No facial asymmetry.\"\n },\n \"documentB\": {\n \"subjective\": \"The patient woke unable to move the left arm and reports the weakness started this morning.\",\n \"objective\": \"Left arm strength 4/5. No facial asymmetry.\"\n },\n \"sourceContext\": {\n \"type\": \"text\",\n \"text\": \"I woke up this morning and couldn't move my left arm.\"\n }\n}")
.asString();
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.
Show child attributes
Example:
{
"subjective": "Patient reports right knee pain for two weeks.",
"plan": "Follow-up in one week."
}
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.
Show child attributes
Example:
{
"subjective": "Patient reports right knee pain for two weeks.",
"plan": "Follow-up in one week."
}
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.
Option 1
Text
Show child attributes
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.
Show child attributes
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.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Corti API Documentation","description":"Explore product documentation, quickstart guides, tutorials, release notes, and detailed API references to build with Corti API. Leverage full stack AI to unlock workflows with speech to text, text generation, agentic framework, embedded Corti Assistant and more.","colors":{"primary":"#3F3F46","light":"#F4F4F5","dark":"#18181B"},"logo":{"light":"https://mintcdn.com/corti/en_RPjQCFb1qJpbU/logo/corti_light.svg?fit=max\u0026auto=format\u0026n=en_RPjQCFb1qJpbU\u0026q=85\u0026s=effbca890e531e034f6b66ce8e15aa6c","dark":"https://mintcdn.com/corti/en_RPjQCFb1qJpbU/logo/corti_dark.svg?fit=max\u0026auto=format\u0026n=en_RPjQCFb1qJpbU\u0026q=85\u0026s=39e1b8245783318adebc44f1548aee0d"},"favicon":"https://mintcdn.com/corti/en_RPjQCFb1qJpbU/logo/favicon-docs.svg?fit=max\u0026auto=format\u0026n=en_RPjQCFb1qJpbU\u0026q=85\u0026s=1971ff0d52cd65b9f56d059bc6457848","api":{"playground":{"display":"simple"},"examples":{"languages":["curl","javascript","csharp","python","php","go","java"]},"mdx":{"auth":{"method":"bearer"}}},"background":{"color":{"light":"#FFFFFF","dark":"#09090B"}},"navbar":{"links":[{"href":"https://help.corti.app/","label":"Support"}],"primary":{"type":"button","label":"Start Building","href":"https://console.corti.app/signup"}},"footer":{"socials":{"website":"https://www.corti.ai","x":"https://x.com/corti_ai","linkedin":"https://www.linkedin.com/company/corti","github":"https://github.com/corticph","youtube":"https://www.youtube.com/@cortiai"}},"fonts":{"heading":{"family":"Booton","weight":600},"body":{"family":"Booton","weight":400}},"icons":{"library":"lucide"},"integrations":{"gtm":{"tagId":"GTM-MR3DSSF2"},"intercom":{"appId":"y30epli4"}},"banner":{"content":"Corti Models is now available: frontier AI on sovereign infrastructure, through an OpenAI-compatible API. [Get started](/models/welcome).","dismissible":true},"errors":{"404":{"redirect":false,"title":"Page not found","description":"The page you're looking for doesn't exist or may have moved. Use the search bar above, or start from one of these pages:\n\n- [Get started](/get_started/welcome)\n- [Corti Models](/models/welcome)\n- [Agentic Framework](/agentic/overview)\n- [Speech to Text](/stt/overview)\n- [Clinical Text Generation](/textgen/overview)\n- [Medical Coding](/coding/overview)\n- [Clinical Assistant](/assistant/welcome)\n- [API Reference](/api-reference/welcome)"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"corti","hasAudioNarration":false,"actualSubdomain":"corti","customDomains":["docs.corti.ai"],"gitSource":{"type":"github","owner":"corticph","repo":"docs_corti","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b10347564d6f4136714ec20","clientVersion":"0.0.4416","searchFilterCounts":[{"language":"default","tag":"Healthcare","count":229},{"language":"default","tag":"API Reference","count":148},{"language":"default","tag":"Clinical Assistant","count":118},{"language":"default","tag":"Events","count":85},{"language":"default","tag":"Event Reference","count":84},{"language":"default","tag":"REST APIs","count":66},{"language":"default","tag":"Agentic Framework","count":56},{"language":"default","tag":"Speech to Text","count":50},{"language":"default","tag":"Home","count":49},{"language":"default","tag":"Guides","count":48}]},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":false,"enableAskAiSearchBar":false,"deflection":{"enabled":true,"email":"help@corti.ai"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@font-face{font-family:\"Booton\";src:url(\"/fonts/booton/Booton-Regular.woff2\") format(\"woff2\");font-style:normal;font-weight:400;font-display:swap}@font-face{font-family:\"Booton\";src:url(\"/fonts/booton/Booton-Medium.woff2\") format(\"woff2\");font-style:normal;font-weight:500;font-display:swap}@font-face{font-family:\"Booton\";src:url(\"/fonts/booton/Booton-Semibold.woff2\") format(\"woff2\");font-style:normal;font-weight:600;font-display:swap}:root{--corti-font-sans: \"Booton\", \"Inter\", ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif;--mintlify-slot-header-height: 7rem}html,body{font-family:var(--corti-font-sans);font-weight:400;-webkit-font-smoothing:antialiased}body :not(code):not(code *):not(pre):not(pre *):not(kbd):not(kbd *):not(samp):not(samp *){font-family:var(--corti-font-sans)}h1,h2,h3,h4,h5,h6{font-family:var(--corti-font-sans);font-weight:600!important;color:var(--tw-prose-headings, #18181b)!important}:is(html.dark,.dark) h1,:is(html.dark,.dark) h2,:is(html.dark,.dark) h3,:is(html.dark,.dark) h4,:is(html.dark,.dark) h5,:is(html.dark,.dark) h6{color:#fafafa!important}:is(html.dark,.dark) [data-component-part=\"step-title\"]{color:#fafafa!important}a[target=\"_blank\"][href=\"https://console.corti.app/signup\"].group>span.absolute.inset-0{background-color:#18181b!important}:is(html.dark,.dark) a[target=\"_blank\"][href=\"https://console.corti.app/signup\"].group>span.absolute.inset-0{background-color:#fafafa!important}:is(html.dark,.dark) a[target=\"_blank\"][href=\"https://console.corti.app/signup\"].group .z-10,:is(html.dark,.dark) a[target=\"_blank\"][href=\"https://console.corti.app/signup\"].group .z-10 *,:is(html.dark,.dark) a[target=\"_blank\"][href=\"https://console.corti.app/signup\"].group svg{color:#18181b!important}[data-component-part=\"card-content-container\"]{align-items:flex-start!important}.card [data-component-part=\"card-content\"]>.code-block:last-child{margin-bottom:0!important}[data-component-part=\"card-content-container\"]>div[class*=\"h-6\"][class*=\"w-6\"]{width:24px!important;height:24px!important;min-width:24px;min-height:24px;display:inline-flex;align-items:center;justify-content:center;margin-top:2px}[data-component-part=\"card-content-container\"]>div[class*=\"h-6\"][class*=\"w-6\"] svg,[data-component-part=\"card-content-container\"]>div[class*=\"h-6\"][class*=\"w-6\"] img{width:24px!important;height:24px!important}:is(html.dark,.dark) .card [data-component-part=\"card-title\"],:is(html.dark,.dark) .card [data-component-part=\"card-title\"] a,:is(html.dark,.dark) .card h2 a,:is(html.dark,.dark) .card h3 a,:is(html.dark,.dark) .card h4 a,:is(html.dark,.dark) .card a[href].font-semibold{color:#fafafa!important}:is(html.dark,.dark) .card [data-component-part=\"card-title\"] a:visited,:is(html.dark,.dark) .card h2 a:visited,:is(html.dark,.dark) .card h3 a:visited,:is(html.dark,.dark) .card h4 a:visited,:is(html.dark,.dark) .card a[href].font-semibold:visited{color:#fafafa!important}.nav-tag-pill-text[data-nav-tag=\"beta\"],[data-nav-tag=\"beta\"].nav-tag-pill-text{background-color:#b8f818!important;border:none!important;color:#18181b!important;text-transform:uppercase!important;font-weight:600!important}#navigation-items{padding-bottom:9rem}.accent-badge{background-color:#b8f818!important;border:none!important;color:#18181b!important;text-transform:uppercase!important;font-weight:600!important}.mdx-content li strong{font-weight:600!important}.mdx-content [class*=\"overflow-x-auto\"]{overflow-x:visible!important}.mdx-content [class*=\"w-[calc(100%+(var(--page-padding)*2))]\"]{width:100%!important}.mdx-content [class*=\"-mx-[var(--page-padding)]\"]{margin-left:0!important;margin-right:0!important}.mdx-content [class*=\"max-w-none\"]{max-width:100%!important}.mdx-content .table{display:block!important}.mdx-content table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:auto;border-collapse:collapse;box-sizing:border-box;margin:0}.mdx-content table th,.mdx-content table td{min-width:0!important;vertical-align:top}.mdx-content table th,.mdx-content table th *{white-space:normal;overflow-wrap:normal!important;word-break:normal!important;hyphens:manual}.mdx-content table th,.mdx-content table th *,.mdx-content table strong{font-weight:600!important}.mdx-content table td{white-space:normal;overflow-wrap:break-word;word-break:normal;hyphens:manual}.mdx-content table code,.mdx-content table kbd,.mdx-content table samp{white-space:nowrap;overflow-wrap:normal;word-break:keep-all}.mdx-content table td code,.mdx-content table td kbd,.mdx-content table td samp{white-space:normal;overflow-wrap:normal;word-break:normal}.mdx-content table td a{white-space:normal;overflow-wrap:break-word;word-break:normal;hyphens:manual}.mdx-content .capabilities-table table th:first-child,.mdx-content .capabilities-table table td:first-child,.mdx-content .capabilities-table table th:last-child,.mdx-content .capabilities-table table td:last-child,.mdx-content .capabilities-table table td:first-child a,.mdx-content .capabilities-table table td:last-child a{white-space:nowrap}.mdx-content table img,.mdx-content table svg{max-width:100%;height:auto;display:block}.mdx-content [data-component-part=\"code-block-root\"]{width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}.mdx-content [data-component-part=\"code-block-root\"][class*=\"overflow-x-auto\"]{overflow-x:auto!important}.mdx-content [data-component-part=\"code-block-root\"] pre,.mdx-content [data-component-part=\"code-block-root\"] code,.mdx-content [data-component-part=\"code-block-root\"] .shiki,.mdx-content [data-component-part=\"code-block-root\"] .shiki .line,.mdx-content [data-component-part=\"code-block-root\"] .shiki .line>span{white-space:pre!important;word-break:normal!important;overflow-wrap:normal!important}.mdx-content [data-component-part=\"code-block-root\"] pre>code>span.line-diff{min-width:max-content!important}:not(pre)>code{background-color:rgba(0,0,0,0.03);border:1px solid rgba(0,0,0,0.08);border-radius:6px;padding:0.15em 0.4em;font-size:0.875em;color:inherit}:is(html.dark,.dark) :not(pre)>code{background-color:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.08);color:#fafafa}html:not(.dark) .mdx-content [data-component-part=\"code-block-root\"] .line-highlight,html:not(.dark) .mdx-content [data-component-part=\"code-block-root\"] .line-highlight::before{background-color:rgba(115, 115, 115, 0.16)!important}:is(html.dark,.dark) g.node.nodeNeutral span,:is(html.dark,.dark) g.node.nodeNeutral .label,:is(html.dark,.dark) g.node.nodeNeutral .label text,:is(html.dark,.dark) g.node.nodeGray span,:is(html.dark,.dark) g.node.nodeGray .label,:is(html.dark,.dark) g.node.nodeGray .label text,:is(html.dark,.dark) g.node.nodeBlue span,:is(html.dark,.dark) g.node.nodeBlue .label,:is(html.dark,.dark) g.node.nodeBlue .label text,:is(html.dark,.dark) g.node.nodeGreen span,:is(html.dark,.dark) g.node.nodeGreen .label,:is(html.dark,.dark) g.node.nodeGreen .label text,:is(html.dark,.dark) g.node.nodeYellow span,:is(html.dark,.dark) g.node.nodeYellow .label,:is(html.dark,.dark) g.node.nodeYellow .label text,:is(html.dark,.dark) g.node.nodeCyan span,:is(html.dark,.dark) g.node.nodeCyan .label,:is(html.dark,.dark) g.node.nodeCyan .label text,:is(html.dark,.dark) g.node.nodePurple span,:is(html.dark,.dark) g.node.nodePurple .label,:is(html.dark,.dark) g.node.nodePurple .label text,:is(html.dark,.dark) g.node.nodeLightPurple span,:is(html.dark,.dark) g.node.nodeLightPurple .label,:is(html.dark,.dark) g.node.nodeLightPurple .label text{color:#1a1a1a!important;fill:#1a1a1a!important}img[src$=\"embedded-assistant.svg\"]{filter:brightness(0) invert(32%)}a[aria-current=\"location\"] img[src$=\"embedded-assistant.svg\"],a:hover img[src$=\"embedded-assistant.svg\"]{filter:brightness(0) invert(15%)}:is(html.dark,.dark) img[src$=\"embedded-assistant.svg\"]{filter:brightness(0) invert(63%)}:is(html.dark,.dark) a[aria-current=\"location\"] img[src$=\"embedded-assistant.svg\"],:is(html.dark,.dark) a:hover img[src$=\"embedded-assistant.svg\"]{filter:brightness(0) invert(88%)}.errors-tabs [role=\"tablist\"] [role=\"tab\"],.errors-tabs [role=\"tablist\"] [role=\"tab\"] *,.errors-tabs [role=\"tablist\"] button,.errors-tabs [role=\"tablist\"] button *{font-weight:800!important;font-size:1.05em!important}"}]}
{"page":{"pagePath":"api-reference/evaluations/compare-documents-using-pdsqi-9","slug":"/api-reference/evaluations/compare-documents-using-pdsqi-9","pageMetadata":{"title":"Compare Documents using PDSQI-9","description":"Compares two documents against each other on eight documentation quality domains of PDSQI-9 (Provider Documentation Summarization Quality Instrument).\nThe citations domain is dropped because most documents do not cite sources. The PDSQI-9 naming is kept.\nThe two documents must come from the same `sourceContext`.\n\nThe API shows both documents to a language model twice, with the order of the documents swapped.\nA domain has a winner only when both orderings agree. This mitigates the position bias of the language model.\n\nThis operation uses a language model. It uses credits.\n","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /tools/evaluations/text/documents/pairwise/pdsqi9","href":"/api-reference/evaluations/compare-documents-using-pdsqi-9","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Compares two documents against each other on eight documentation quality domains of PDSQI-9 (Provider Documentation Summarization Quality Instrument).\\nThe citations domain is dropped because most documents do not cite sources. The PDSQI-9 naming is kept.\\nThe two documents must come from the same \", _jsx(_components.code, {\n children: \"sourceContext\"\n }), \".\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"The API shows both documents to a language model twice, with the order of the documents swapped.\\nA domain has a winner only when both orderings agree. This mitigates the position bias of the language model.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"This operation uses a language model. It uses credits.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Compare Documents using PDSQI-9","description":"Compares two documents against each other on eight documentation quality domains of PDSQI-9 (Provider Documentation Summarization Quality Instrument).\nThe citations domain is dropped because most documents do not cite sources. The PDSQI-9 naming is kept.\nThe two documents must come from the same `sourceContext`.\n\nThe API shows both documents to a language model twice, with the order of the documents swapped.\nA domain has a winner only when both orderings agree. This mitigates the position bias of the language model.\n\nThis operation uses a language model. It uses credits.\n","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /tools/evaluations/text/documents/pairwise/pdsqi9","href":"/api-reference/evaluations/compare-documents-using-pdsqi-9","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/corti/f39b9e0170d6232a/api-reference/corti.js","/_mintlify/custom/corti/8c15918c79eb9f3c/generate-events-nav.js"],"openApiReferenceData":{"operation":{"operationId":"evaluations_documents_pairwise_pdsqi9","tags":["Evaluations"],"summary":"Compare Documents using PDSQI-9","description":"Compares two documents against each other on eight documentation quality domains of PDSQI-9 (Provider Documentation Summarization Quality Instrument).\nThe citations domain is dropped because most documents do not cite sources. The PDSQI-9 naming is kept.\nThe two documents must come from the same `sourceContext`.\n\nThe API shows both documents to a language model twice, with the order of the documents swapped.\nA domain has a winner only when both orderings agree. This mitigates the position bias of the language model.\n\nThis operation uses a language model. It uses credits.\n","parameters":["1030ec5c-aa3f-45bb-baed-13e9547bf2f8"],"requestBody":"ae8d7c55-ce32-4a19-b734-27af89b38687","responses":{"200":"8ee8b907-dfd8-4ef8-994f-883d51103b2e","400":"3bf28fad-4704-4f04-80e6-17afba32301f","403":"a7e5534a-8509-4e66-bb36-483a0806bb4c","429":"39907b9b-86dd-4045-85e2-71135649c9d9","500":"c3f840d7-3088-4852-a7a0-bdd1f608b020","502":"b1ab8dc7-0b8e-4199-a797-5d28ce57791f"},"method":"post","type":"path","servers":["0437c4d7-4bbb-48c7-86e6-cf5221518f3b"],"security":["020678da-561c-4ef8-9e84-31509334b7cf"],"path":"/tools/evaluations/text/documents/pairwise/pdsqi9","baseUrlOptions":["https://api.{environment}.corti.app/v2/"],"title":"Compare Documents using PDSQI-9","codeSamples":[],"requestExampleLanguages":["bash","javascript","csharp","python","php","go","java"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"1030ec5c-aa3f-45bb-baed-13e9547bf2f8":{"name":"Tenant-Name","in":"header","description":"Identifies a distinct entity within Corti's multi-tenant system. Ensures correct routing and authentication of the request.","required":true,"example":"base","schema":{"type":"string","description":"Identifies a distinct entity within Corti's multi-tenant system. Ensures correct routing and authentication of the request.","example":"base","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"The two documents to compare.\nBoth documents must come from the same `sourceContext`.\nThe `winners` in the response use `a` for `documentA` and `b` for `documentB`.\n","required":["documentA","documentB","sourceContext"],"properties":{"documentA":{"type":"object","description":"A document. Each key is a section ID. Each value is the text of that section.\nSection IDs must not be empty.\n\nThe API processes the sections in the order of the request.\nThe spans and claims in the response are in the order of the sections in the request, and then in the order in the text.\n","minProperties":1,"additionalProperties":{"type":"string","uniqueKey":"documentA.additionalProperties","typeLabel":"string"},"example":{"subjective":"Patient reports right knee pain for two weeks.","plan":"Follow-up in one week."},"isRequired":true,"uniqueKey":"documentA","typeLabel":"object"},"documentB":{"type":"object","description":"A document. Each key is a section ID. Each value is the text of that section.\nSection IDs must not be empty.\n\nThe API processes the sections in the order of the request.\nThe spans and claims in the response are in the order of the sections in the request, and then in the order in the text.\n","minProperties":1,"additionalProperties":{"type":"string","uniqueKey":"documentB.additionalProperties","typeLabel":"string"},"example":{"subjective":"Patient reports right knee pain for two weeks.","plan":"Follow-up in one week."},"isRequired":true,"uniqueKey":"documentB","typeLabel":"object"},"sourceContext":{"oneOf":[{"type":"object","description":"The source that both documents came from. A transcript or a text string.\nThe API does not split the source context into sentences. It passes the source context to the language model as-is.\n","required":["type","transcript"],"properties":{"type":{"type":"string","enum":["transcript"],"isRequired":true,"uniqueKey":"sourceContext.oneOf.0.type","typeLabel":"enum\u003cstring>"},"transcript":{"type":"object","required":["transcripts"],"description":"Minimal transcript shape accepted as input context. Decoupled from the transcript resource: only `transcripts` is required, and within each segment only `text` is required.\n","properties":{"transcripts":{"type":"array","minItems":1,"items":{"type":"object","required":["text"],"description":"Minimal transcript segment. Only `text` is required.","properties":{"text":{"type":"string","description":"The spoken phrase or utterance.","minLength":1,"isRequired":true,"uniqueKey":"sourceContext.oneOf.0.transcript.transcripts.items.[INDEX].text","typeLabel":"string"},"channel":{"type":"integer","description":"The channel associated with this phrase/utterance.","uniqueKey":"sourceContext.oneOf.0.transcript.transcripts.items.[INDEX].channel","typeLabel":"integer"},"participant":{"type":"integer","description":"The identifier of the participant.","uniqueKey":"sourceContext.oneOf.0.transcript.transcripts.items.[INDEX].participant","typeLabel":"integer"},"speakerId":{"type":"integer","description":"Id to tag an identified speaker.","uniqueKey":"sourceContext.oneOf.0.transcript.transcripts.items.[INDEX].speakerId","typeLabel":"integer"},"start":{"type":"integer","description":"Start time in milliseconds for phrase/utterance.","uniqueKey":"sourceContext.oneOf.0.transcript.transcripts.items.[INDEX].start","typeLabel":"integer"},"end":{"type":"integer","description":"End time in milliseconds for phrase/utterance.","uniqueKey":"sourceContext.oneOf.0.transcript.transcripts.items.[INDEX].end","typeLabel":"integer"}},"uniqueKey":"sourceContext.oneOf.0.transcript.transcripts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"sourceContext.oneOf.0.transcript.transcripts","typeLabel":"object[]"},"metadata":{"type":"object","description":"Optional transcript-level metadata. All fields optional.","properties":{"participantsRoles":{"oneOf":[{"type":"array","items":{"type":"object","required":["channel","role"],"properties":{"channel":{"type":"integer","minimum":0,"description":"The audio channel to associate with a participant role.","isRequired":true,"uniqueKey":"sourceContext.oneOf.0.transcript.metadata.participantsRoles.oneOf.0.items.[INDEX].channel","typeLabel":"integer"},"role":{"type":"string","description":"Free-form label for the participant role (e.g., 'doctor', 'patient', 'Attending Physician'). Must not be empty or whitespace-only after trimming, must not contain control characters, and must not exceed 100 characters or 10 words.","isRequired":true,"uniqueKey":"sourceContext.oneOf.0.transcript.metadata.participantsRoles.oneOf.0.items.[INDEX].role","typeLabel":"string"}},"uniqueKey":"sourceContext.oneOf.0.transcript.metadata.participantsRoles.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"sourceContext.oneOf.0.transcript.metadata.participantsRoles.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["channel","role"],"properties":{"channel":{"type":"integer","minimum":0,"description":"The audio channel to associate with a participant role."},"role":{"type":"string","description":"Free-form label for the participant role (e.g., 'doctor', 'patient', 'Attending Physician'). Must not be empty or whitespace-only after trimming, must not contain control characters, and must not exceed 100 characters or 10 words."}}},"uniqueKey":"sourceContext.oneOf.0.transcript.metadata.participantsRoles.oneOf.1","typeLabel":"null"}],"uniqueKey":"sourceContext.oneOf.0.transcript.metadata.participantsRoles","typeLabel":"object[] | null"}},"uniqueKey":"sourceContext.oneOf.0.transcript.metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"sourceContext.oneOf.0.transcript","typeLabel":"object"}},"isRequired":true,"uniqueKey":"sourceContext.oneOf.0","typeLabel":"object"},{"type":"object","title":"Text","description":"The source that both documents came from. A transcript or a text string.\nThe API does not split the source context into sentences. It passes the source context to the language model as-is.\n","required":["type","text"],"properties":{"type":{"type":"string","enum":["text"],"description":"The type of context, always \"text\" in this context.\n","isRequired":true,"uniqueKey":"sourceContext.oneOf.1.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"A text string to be used as input to the model.\n","minLength":1,"isRequired":true,"uniqueKey":"sourceContext.oneOf.1.text","typeLabel":"string"}},"isRequired":true,"uniqueKey":"sourceContext.oneOf.1","typeLabel":"Text · object"}],"isRequired":true,"uniqueKey":"sourceContext","typeLabel":"object | Text · object"}},"uniqueKey":"","typeLabel":"object"},"example":{"documentA":{"subjective":"The patient woke with left arm weakness.","objective":"Left arm strength 4/5. No facial asymmetry."},"documentB":{"subjective":"The patient woke unable to move the left arm and reports the weakness started this morning.","objective":"Left arm strength 4/5. No facial asymmetry."},"sourceContext":{"type":"text","text":"I woke up this morning and couldn't move my left arm."}},"examples":{"Example":{"title":"Example","value":{"documentA":{"subjective":"The patient woke with left arm weakness.","objective":"Left arm strength 4/5. No facial asymmetry."},"documentB":{"subjective":"The patient woke unable to move the left arm and reports the weakness started this morning.","objective":"Left arm strength 4/5. No facial asymmetry."},"sourceContext":{"type":"text","text":"I woke up this morning and couldn't move my left arm."}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"8ee8b907-dfd8-4ef8-994f-883d51103b2e":{"description":"The winner of each PDSQI-9 domain (excluding citations).","content":{"application/json":{"schema":{"type":"object","required":["winners","evaluationConfigHash","usageInfo"],"properties":{"winners":{"type":"object","description":"One verdict per PDSQI-9 documentation quality domain, resolved over both orderings.\nThe citations domain of the PDSQI-9 instrument is dropped because most documents do not cite sources.\nThe domains:\n- `accurate`: The document is true and does not contain incorrect information.\n- `thorough`: The document is complete and records all issues of importance.\n- `useful`: The information is relevant to the target reader, at the right level of detail.\n- `organized`: The document is well-structured so that the reader can follow the information.\n- `comprehensible`: The language is clear, plain and familiar to the target reader.\n- `succinct`: The document captures each statement in the fewest words, without redundancy.\n- `synthesized`: The document reflects understanding of the scenario.\n- `stigmatizing`: The document avoids stigmatizing language.\n","required":["accurate","thorough","useful","organized","comprehensible","succinct","synthesized","stigmatizing"],"properties":{"accurate":{"type":"string","description":"The winner of one PDSQI-9 domain, resolved over both orderings.\n- `a`: `documentA` is better. Both orderings name `documentA`.\n- `b`: `documentB` is better. Both orderings name `documentB`.\n- `tie`: The domain has no winner. Both orderings say the documents are of equal quality, or one ordering names a winner and the other names a tie.\n- `contradiction`: The orderings name opposite documents. The model flipped with the order of the documents.\n","enum":["a","b","tie","contradiction"],"isRequired":true,"uniqueKey":"winners.accurate","typeLabel":"enum\u003cstring>"},"thorough":{"type":"string","description":"The winner of one PDSQI-9 domain, resolved over both orderings.\n- `a`: `documentA` is better. Both orderings name `documentA`.\n- `b`: `documentB` is better. Both orderings name `documentB`.\n- `tie`: The domain has no winner. Both orderings say the documents are of equal quality, or one ordering names a winner and the other names a tie.\n- `contradiction`: The orderings name opposite documents. The model flipped with the order of the documents.\n","enum":["a","b","tie","contradiction"],"isRequired":true,"uniqueKey":"winners.thorough","typeLabel":"enum\u003cstring>"},"useful":{"type":"string","description":"The winner of one PDSQI-9 domain, resolved over both orderings.\n- `a`: `documentA` is better. Both orderings name `documentA`.\n- `b`: `documentB` is better. Both orderings name `documentB`.\n- `tie`: The domain has no winner. Both orderings say the documents are of equal quality, or one ordering names a winner and the other names a tie.\n- `contradiction`: The orderings name opposite documents. The model flipped with the order of the documents.\n","enum":["a","b","tie","contradiction"],"isRequired":true,"uniqueKey":"winners.useful","typeLabel":"enum\u003cstring>"},"organized":{"type":"string","description":"The winner of one PDSQI-9 domain, resolved over both orderings.\n- `a`: `documentA` is better. Both orderings name `documentA`.\n- `b`: `documentB` is better. Both orderings name `documentB`.\n- `tie`: The domain has no winner. Both orderings say the documents are of equal quality, or one ordering names a winner and the other names a tie.\n- `contradiction`: The orderings name opposite documents. The model flipped with the order of the documents.\n","enum":["a","b","tie","contradiction"],"isRequired":true,"uniqueKey":"winners.organized","typeLabel":"enum\u003cstring>"},"comprehensible":{"type":"string","description":"The winner of one PDSQI-9 domain, resolved over both orderings.\n- `a`: `documentA` is better. Both orderings name `documentA`.\n- `b`: `documentB` is better. Both orderings name `documentB`.\n- `tie`: The domain has no winner. Both orderings say the documents are of equal quality, or one ordering names a winner and the other names a tie.\n- `contradiction`: The orderings name opposite documents. The model flipped with the order of the documents.\n","enum":["a","b","tie","contradiction"],"isRequired":true,"uniqueKey":"winners.comprehensible","typeLabel":"enum\u003cstring>"},"succinct":{"type":"string","description":"The winner of one PDSQI-9 domain, resolved over both orderings.\n- `a`: `documentA` is better. Both orderings name `documentA`.\n- `b`: `documentB` is better. Both orderings name `documentB`.\n- `tie`: The domain has no winner. Both orderings say the documents are of equal quality, or one ordering names a winner and the other names a tie.\n- `contradiction`: The orderings name opposite documents. The model flipped with the order of the documents.\n","enum":["a","b","tie","contradiction"],"isRequired":true,"uniqueKey":"winners.succinct","typeLabel":"enum\u003cstring>"},"synthesized":{"type":"string","description":"The winner of one PDSQI-9 domain, resolved over both orderings.\n- `a`: `documentA` is better. Both orderings name `documentA`.\n- `b`: `documentB` is better. Both orderings name `documentB`.\n- `tie`: The domain has no winner. Both orderings say the documents are of equal quality, or one ordering names a winner and the other names a tie.\n- `contradiction`: The orderings name opposite documents. The model flipped with the order of the documents.\n","enum":["a","b","tie","contradiction"],"isRequired":true,"uniqueKey":"winners.synthesized","typeLabel":"enum\u003cstring>"},"stigmatizing":{"type":"string","description":"The winner of one PDSQI-9 domain, resolved over both orderings.\n- `a`: `documentA` is better. Both orderings name `documentA`.\n- `b`: `documentB` is better. Both orderings name `documentB`.\n- `tie`: The domain has no winner. Both orderings say the documents are of equal quality, or one ordering names a winner and the other names a tie.\n- `contradiction`: The orderings name opposite documents. The model flipped with the order of the documents.\n","enum":["a","b","tie","contradiction"],"isRequired":true,"uniqueKey":"winners.stigmatizing","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"winners","typeLabel":"object"},"evaluationConfigHash":{"type":"string","description":"A SHA-256 hash of the evaluation configuration: the language model, the prompt and the model parameters.\nThe hash does not include the content of the request.\nCompare winners only when they have the same hash.\n","example":"sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08","isRequired":true,"uniqueKey":"evaluationConfigHash","typeLabel":"string"},"usageInfo":{"type":"object","description":"Credits consumed for this request.","required":["creditsConsumed"],"properties":{"creditsConsumed":{"type":"number","isRequired":true,"uniqueKey":"usageInfo.creditsConsumed","typeLabel":"number"}},"isRequired":true,"uniqueKey":"usageInfo","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"winners":{"accurate":"a","thorough":"tie","useful":"a","organized":"tie","comprehensible":"a","succinct":"b","synthesized":"tie","stigmatizing":"tie"},"evaluationConfigHash":"sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08","usageInfo":{"creditsConsumed":0.06}},"examples":{"Example":{"title":"Example","value":{"winners":{"accurate":"a","thorough":"tie","useful":"a","organized":"tie","comprehensible":"a","succinct":"b","synthesized":"tie","stigmatizing":"tie"},"evaluationConfigHash":"sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08","usageInfo":{"creditsConsumed":0.06}}}},"exampleType":"examples"}},"exampleType":"examples"},"3bf28fad-4704-4f04-80e6-17afba32301f":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","required":["requestid","status","type","detail"],"properties":{"requestid":{"type":"string","isRequired":true,"uniqueKey":"requestid","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"type":{"type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"validationErrors":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"validationErrors.items.[INDEX].additionalProperties","typeLabel":"string"},"uniqueKey":"validationErrors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"validationErrors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"requestid":"\u003cstring>","status":123,"type":"\u003cstring>","detail":"\u003cstring>","validationErrors":[{}]}}},"exampleType":"generated"}},"exampleType":"generated"},"a7e5534a-8509-4e66-bb36-483a0806bb4c":{"description":"The access token does not have the scope for evaluations.","content":{"application/json":{"schema":{"type":"object","required":["requestid","status","type","detail"],"properties":{"requestid":{"type":"string","isRequired":true,"uniqueKey":"requestid","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"type":{"type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"validationErrors":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"validationErrors.items.[INDEX].additionalProperties","typeLabel":"string"},"uniqueKey":"validationErrors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"validationErrors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"requestid":"\u003cstring>","status":123,"type":"\u003cstring>","detail":"\u003cstring>","validationErrors":[{}]}}},"exampleType":"generated"}},"exampleType":"generated"},"39907b9b-86dd-4045-85e2-71135649c9d9":{"description":"The API has too many evaluation requests. Wait. Then send the request again.","content":{"application/json":{"schema":{"type":"object","required":["requestid","status","type","detail"],"properties":{"requestid":{"type":"string","isRequired":true,"uniqueKey":"requestid","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"type":{"type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"validationErrors":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"validationErrors.items.[INDEX].additionalProperties","typeLabel":"string"},"uniqueKey":"validationErrors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"validationErrors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"requestid":"\u003cstring>","status":123,"type":"\u003cstring>","detail":"\u003cstring>","validationErrors":[{}]}}},"exampleType":"generated"}},"exampleType":"generated"},"c3f840d7-3088-4852-a7a0-bdd1f608b020":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","required":["requestid","status","type","detail"],"properties":{"requestid":{"type":"string","isRequired":true,"uniqueKey":"requestid","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"type":{"type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"validationErrors":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"validationErrors.items.[INDEX].additionalProperties","typeLabel":"string"},"uniqueKey":"validationErrors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"validationErrors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"requestid":"\u003cstring>","status":123,"type":"\u003cstring>","detail":"\u003cstring>","validationErrors":[{}]}}},"exampleType":"generated"}},"exampleType":"generated"},"b1ab8dc7-0b8e-4199-a797-5d28ce57791f":{"description":"The API could not complete the evaluation.","content":{"application/json":{"schema":{"type":"object","required":["requestid","status","type","detail"],"properties":{"requestid":{"type":"string","isRequired":true,"uniqueKey":"requestid","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"type":{"type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"validationErrors":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"validationErrors.items.[INDEX].additionalProperties","typeLabel":"string"},"uniqueKey":"validationErrors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"validationErrors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"requestid":"\u003cstring>","status":123,"type":"\u003cstring>","detail":"\u003cstring>","validationErrors":[{}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"020678da-561c-4ef8-9e84-31509334b7cf":{"AuthorizationHeader":{"type":"http","description":"Input your token","scheme":"bearer","scopes":["bearer"],"schemeName":"AuthorizationHeader"}}},"servers":{"0437c4d7-4bbb-48c7-86e6-cf5221518f3b":{"url":"https://api.{environment}.corti.app/v2/","variables":{"environment":{"default":"eu","enum":["us","eu"]}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","description":"Input your token","scheme":"bearer","scopes":["bearer"],"schemeName":"AuthorizationHeader"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Input your token","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"AuthorizationHeader","name":"Authorization"}],"title":"AuthorizationHeader"}]},"originalFileLocation":"api-reference/auto-generated-openapi.yml"},"subdomain":"corti","siteName":"Corti API Documentation","title":"Compare Documents using PDSQI-9 - Corti API Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-02T14:53:36.824Z","originalFileLocation":"api-reference/evaluations/compare-documents-using-pdsqi-9.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Compares two documents against each other on eight documentation quality domains of PDSQI-9 (Provider Documentation Summarization Quality Instrument). The citations domain is dropped because most documents do not cite sources. The PDSQI-9 naming is kept. The two documents must come from the same sourceContext. The API shows both documents to a language model twice, with the order of the documents swapped. A domain has a winner only when both orderings agree. This mitigates the position bias of the language model. This operation uses a language model. It uses credits.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Corti API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/corti/gI_ok5T7zaR8y4z1/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/corti/gI_ok5T7zaR8y4z1/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/corti/gI_ok5T7zaR8y4z1/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/corti/gI_ok5T7zaR8y4z1/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/corti/gI_ok5T7zaR8y4z1/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/corti/gI_ok5T7zaR8y4z1/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/corti/gI_ok5T7zaR8y4z1/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/corti/gI_ok5T7zaR8y4z1/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/corti/gI_ok5T7zaR8y4z1/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Compare Documents using PDSQI-9 - Corti API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Compares two documents against each other on eight documentation quality domains of PDSQI-9 (Provider Documentation Summarization Quality Instrument). The citations domain is dropped because most documents do not cite sources. The PDSQI-9 naming is kept. The two documents must come from the same sourceContext. The API shows both documents to a language model twice, with the order of the documents swapped. A domain has a winner only when both orderings agree. This mitigates the position bias of the language model. This operation uses a language model. It uses credits.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Corti API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.corti.ai/api-reference/evaluations/compare-documents-using-pdsqi-9\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://corti.mintlify.site/_mintlify/api/og/v2?division=Evaluations\u0026amp;title=Compare+Documents+using+PDSQI-9\u0026amp;description=Compares+two+documents+against+each+other+on+eight+documentation+quality+domains+of+PDSQI-9+%28Provider+Documentation+Summarization+Quality+Instrument%29.%0AThe+citat\u0026amp;theme=f2ff4eac94d47d8fe457bb02\u0026amp;signature=8bd405d598966e27dfb7ffaedebeb0adc24cfe920dd908702e0580751b60eda1\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Compare Documents using PDSQI-9 - Corti API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Compares two documents against each other on eight documentation quality domains of PDSQI-9 (Provider Documentation Summarization Quality Instrument). The citations domain is dropped because most documents do not cite sources. The PDSQI-9 naming is kept. The two documents must come from the same sourceContext. The API shows both documents to a language model twice, with the order of the documents swapped. A domain has a winner only when both orderings agree. This mitigates the position bias of the language model. This operation uses a language model. It uses credits.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://corti.mintlify.site/_mintlify/api/og/v2?division=Evaluations\u0026amp;title=Compare+Documents+using+PDSQI-9\u0026amp;description=Compares+two+documents+against+each+other+on+eight+documentation+quality+domains+of+PDSQI-9+%28Provider+Documentation+Summarization+Quality+Instrument%29.%0AThe+citat\u0026amp;theme=f2ff4eac94d47d8fe457bb02\u0026amp;signature=8bd405d598966e27dfb7ffaedebeb0adc24cfe920dd908702e0580751b60eda1\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/corti/gI_ok5T7zaR8y4z1/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Corti API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3F3F46\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.corti.ai/api-reference/evaluations/compare-documents-using-pdsqi-9\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/evaluations/compare-documents-using-pdsqi-9.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.corti.ai/#organization\",\"name\":\"Corti API Documentation\",\"url\":\"https://docs.corti.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/corti/en_RPjQCFb1qJpbU/logo/corti_light.svg?fit=max\u0026auto=format\u0026n=en_RPjQCFb1qJpbU\u0026q=85\u0026s=effbca890e531e034f6b66ce8e15aa6c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.corti.ai#website\",\"name\":\"Corti API Documentation\",\"url\":\"https://docs.corti.ai\",\"publisher\":{\"@id\":\"https://docs.corti.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.corti.ai/api-reference/evaluations/compare-documents-using-pdsqi-9#webpage\",\"url\":\"https://docs.corti.ai/api-reference/evaluations/compare-documents-using-pdsqi-9\",\"name\":\"Compare Documents using PDSQI-9\",\"description\":\"Compares two documents against each other on eight documentation quality domains of PDSQI-9 (Provider Documentation Summarization Quality Instrument). The citations domain is dropped because most documents do not cite sources. The PDSQI-9 naming is kept. The two documents must come from the same sourceContext. The API shows both documents to a language model twice, with the order of the documents swapped. A domain has a winner only when both orderings agree. This mitigates the position bias of the language model. This operation uses a language model. It uses credits.\",\"dateModified\":\"2026-12-02T14:53:36.824Z\",\"isPartOf\":{\"@id\":\"https://docs.corti.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.corti.ai/api-reference/evaluations/compare-documents-using-pdsqi-9#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.corti.ai/api-reference/evaluations/compare-documents-using-pdsqi-9#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"REST APIs\",\"item\":\"https://docs.corti.ai/api-reference/interactions/list-all-interactions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Evaluations\",\"item\":\"https://docs.corti.ai/api-reference/evaluations/evaluate-document-groundedness\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Compare Documents using PDSQI-9\",\"item\":\"https://docs.corti.ai/api-reference/evaluations/compare-documents-using-pdsqi-9\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.corti.ai/api-reference/evaluations/compare-documents-using-pdsqi-9#apireference\",\"headline\":\"Compare Documents using PDSQI-9\",\"name\":\"Compare Documents using PDSQI-9\",\"description\":\"Compares two documents against each other on eight documentation quality domains of PDSQI-9 (Provider Documentation Summarization Quality Instrument). The citations domain is dropped because most documents do not cite sources. The PDSQI-9 naming is kept. The two documents must come from the same sourceContext. The API shows both documents to a language model twice, with the order of the documents swapped. A domain has a winner only when both orderings agree. This mitigates the position bias of the language model. This operation uses a language model. It uses credits.\",\"url\":\"https://docs.corti.ai/api-reference/evaluations/compare-documents-using-pdsqi-9\",\"mainEntityOfPage\":{\"@id\":\"https://docs.corti.ai/api-reference/evaluations/compare-documents-using-pdsqi-9#webpage\"},\"dateModified\":\"2026-12-02T14:53:36.824Z\",\"publisher\":{\"@id\":\"https://docs.corti.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.corti.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Corti API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Corti API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/evaluations/compare-documents-using-pdsqi-9.md","siteName":"Corti API Documentation","nav":{"global":null,"tabs":[{"tab":"Home","icon":"house","pages":[{"title":"Home","href":"/get_started/welcome"}]},{"tab":"Corti Models","icon":"microchip","pages":[{"title":"Corti Models","href":"/models/welcome"}]},{"tab":"Agentic Framework","icon":"layers","pages":[{"title":"Agentic Framework","href":"/agentic/overview"}]},{"tab":"Speech to Text","icon":"audio-lines","pages":[{"title":"Speech to Text","href":"/stt/overview"}]},{"tab":"Healthcare","icon":"heart-pulse","pages":[{"title":"Healthcare","href":"/healthcare"}]},{"tab":"API Reference","icon":"square-code","pages":[{"title":"Welcome to the Corti API Reference","sidebarTitle":"Welcome","mode":"wide","href":"/api-reference/welcome"},{"group":"Corti Models APIs","icon":"microchip","pages":[{"group":"Models","pages":[{"title":"List available models","deprecated":null,"version":null,"openapi":"/api-reference/corti-models/corti-models-openapi.yml get /v1/models","href":"/api-reference/corti-models/models/list-available-models"}]},{"group":"Chat","pages":[{"title":"Create chat completion","deprecated":null,"version":null,"openapi":"/api-reference/corti-models/corti-models-openapi.yml post /v1/chat/completions","href":"/api-reference/corti-models/chat/create-chat-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"/api-reference/corti-models/corti-models-openapi.yml post /v1/completions","href":"/api-reference/corti-models/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create response","deprecated":null,"version":null,"openapi":"/api-reference/corti-models/corti-models-openapi.yml post /v1/responses","href":"/api-reference/corti-models/responses/create-response"}]},{"group":"Anthropic","pages":[{"title":"Create message (Anthropic)","deprecated":null,"version":null,"openapi":"/api-reference/corti-models/corti-models-openapi.yml post /anthropic/v1/messages","href":"/api-reference/corti-models/anthropic/create-message-anthropic"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"/api-reference/corti-models/corti-models-openapi.yml post /v1/embeddings","href":"/api-reference/corti-models/embeddings/create-embeddings"}]},{"group":"Decisions","pages":[{"title":"Create decision","deprecated":null,"version":null,"openapi":"/api-reference/corti-models/corti-models-openapi.yml post /typesafe/v1/systemone","href":"/api-reference/corti-models/decisions/create-decision"}]}]},{"group":"Agentic APIs","icon":"layers","pages":[{"group":"Agents","pages":[{"title":"List agents","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/agents","href":"/agentic-v2/agents/list-agents"},{"title":"Create an agent","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml post /agentic/agents","href":"/agentic-v2/agents/create-an-agent"},{"title":"Get an agent","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/agents/{agentId}","href":"/agentic-v2/agents/get-an-agent"},{"title":"Delete an agent","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml delete /agentic/agents/{agentId}","href":"/agentic-v2/agents/delete-an-agent"},{"title":"Update an agent (partial)","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml patch /agentic/agents/{agentId}","href":"/agentic-v2/agents/update-an-agent-partial"}]},{"group":"Agent Card","pages":[{"title":"Get the A2A agent card","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/agents/{agentId}/.well-known/agent-card.json","href":"/agentic-v2/agent-card/get-the-a2a-agent-card"}]},{"group":"A2A","pages":[{"title":"A2A JSON-RPC binding","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml post /agentic/agents/{agentId}/a2a","href":"/agentic-v2/a2a/a2a-json-rpc-binding"},{"title":"Send a message (A2A REST)","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml post /agentic/agents/{agentId}/a2a/message:send","href":"/agentic-v2/a2a/send-a-message-a2a-rest"},{"title":"Stream a message (A2A REST)","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml post /agentic/agents/{agentId}/a2a/message:stream","href":"/agentic-v2/a2a/stream-a-message-a2a-rest"},{"title":"List tasks (A2A REST)","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/agents/{agentId}/a2a/tasks","href":"/agentic-v2/a2a/list-tasks-a2a-rest"},{"title":"Get a task (A2A REST)","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/agents/{agentId}/a2a/tasks/{taskId}","href":"/agentic-v2/a2a/get-a-task-a2a-rest"},{"title":"Cancel a task (A2A REST)","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml post /agentic/agents/{agentId}/a2a/tasks/{taskId}:cancel","href":"/agentic-v2/a2a/cancel-a-task-a2a-rest"},{"title":"Subscribe to task events (A2A REST)","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml post /agentic/agents/{agentId}/a2a/tasks/{taskId}:subscribe","href":"/agentic-v2/a2a/subscribe-to-task-events-a2a-rest"}]},{"group":"Usage","pages":[{"title":"Get an agent's usage","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/agents/{agentId}/usage","href":"/agentic-v2/usage/get-an-agents-usage"}]},{"group":"Connectors","pages":[{"title":"List an agent's connectors","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/agents/{agentId}/connectors","href":"/agentic-v2/connectors/list-an-agents-connectors"},{"title":"Attach a connector","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml post /agentic/agents/{agentId}/connectors","href":"/agentic-v2/connectors/attach-a-connector"},{"title":"Get an agent-scoped connector","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/agents/{agentId}/connectors/{agentConnectorId}","href":"/agentic-v2/connectors/get-an-agent-scoped-connector"},{"title":"Remove a connector","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml delete /agentic/agents/{agentId}/connectors/{agentConnectorId}","href":"/agentic-v2/connectors/remove-a-connector"},{"title":"Update an agent-scoped connector (partial)","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml patch /agentic/agents/{agentId}/connectors/{agentConnectorId}","href":"/agentic-v2/connectors/update-an-agent-scoped-connector-partial"}]},{"group":"Contexts","pages":[{"title":"List contexts","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/contexts","href":"/agentic-v2/contexts/list-contexts"},{"title":"Get a context","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/contexts/{contextId}","href":"/agentic-v2/contexts/get-a-context"},{"title":"Delete or expire a context","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml delete /agentic/contexts/{contextId}","href":"/agentic-v2/contexts/delete-or-expire-a-context"},{"title":"Export the observability trace for a context","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/contexts/{contextId}/trace","href":"/agentic-v2/contexts/export-the-observability-trace-for-a-context"},{"title":"List tasks within a context","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/contexts/{contextId}/tasks","href":"/agentic-v2/contexts/list-tasks-within-a-context"},{"title":"Get a task within a context","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/contexts/{contextId}/tasks/{taskId}","href":"/agentic-v2/contexts/get-a-task-within-a-context"}]},{"group":"Artifacts","pages":[{"title":"Get an artifact","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/contexts/{contextId}/tasks/{taskId}/artifacts/{artifactId}","href":"/agentic-v2/artifacts/get-an-artifact"}]},{"group":"Registry","pages":[{"title":"List available registry connectors","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/registry/connectors","href":"/agentic-v2/registry/list-available-registry-connectors"},{"title":"Get registry connector details and configuration schema","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/registry/connectors/{connectorId}","href":"/agentic-v2/registry/get-registry-connector-details-and-configuration-schema"}]},{"group":"Feedback","pages":[{"title":"List feedback for a task","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml get /agentic/contexts/{contextId}/tasks/{taskId}/feedback","href":"/agentic-v2/feedback/list-feedback-for-a-task"},{"title":"Submit feedback for a task","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml post /agentic/contexts/{contextId}/tasks/{taskId}/feedback","href":"/agentic-v2/feedback/submit-feedback-for-a-task"},{"title":"Delete a feedback resource","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi-v2.yml delete /agentic/contexts/{contextId}/tasks/{taskId}/feedback/{feedbackId}","href":"/agentic-v2/feedback/delete-a-feedback-resource"}]}]},{"group":"Web Socket APIs","icon":"handshake","pages":[{"group":"Transcribe","pages":[{"title":"Real-time stateless dictation","sidebarTitle":"Stateless dictation","tag":"WSS","href":"/api-reference/transcribe"}]},{"group":"Streams","pages":[{"title":"Real-time conversational transcript generation and fact extraction (FactsR™)","sidebarTitle":"Conversational fact extraction","tag":"WSS","href":"/api-reference/streams"}]}]},{"group":"REST APIs","icon":"arrow-up-down","pages":[{"group":"Interactions","pages":[{"title":"List All Interactions","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/","href":"/api-reference/interactions/list-all-interactions"},{"title":"Create Interaction","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /interactions/","href":"/api-reference/interactions/create-interaction"},{"title":"Get Existing Interaction","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}","href":"/api-reference/interactions/get-existing-interaction"},{"title":"Delete Interaction","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /interactions/{id}","href":"/api-reference/interactions/delete-interaction"},{"title":"Update Interaction","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml patch /interactions/{id}","href":"/api-reference/interactions/update-interaction"},{"title":"Update Interaction Retention Policy","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml put /interactions/{id}/retention-policy","href":"/api-reference/interactions/update-interaction-retention-policy"}]},{"group":"Recordings","pages":[{"title":"List Recordings","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/recordings/","href":"/api-reference/recordings/list-recordings"},{"title":"Upload Recording","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /interactions/{id}/recordings/","href":"/api-reference/recordings/upload-recording"},{"title":"Get Recording","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/recordings/{recordingId}","href":"/api-reference/recordings/get-recording"},{"title":"Delete Recording","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /interactions/{id}/recordings/{recordingId}","href":"/api-reference/recordings/delete-recording"}]},{"group":"Transcripts","pages":[{"title":"List Transcripts","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/transcripts/","href":"/api-reference/transcripts/list-transcripts"},{"title":"Create Transcript","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /interactions/{id}/transcripts/","href":"/api-reference/transcripts/create-transcript"},{"title":"Get Transcript","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/transcripts/{transcriptId}","href":"/api-reference/transcripts/get-transcript"},{"title":"Delete Transcript","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /interactions/{id}/transcripts/{transcriptId}","href":"/api-reference/transcripts/delete-transcript"},{"title":"Get Transcript Status","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/transcripts/{transcriptId}/status","href":"/api-reference/transcripts/get-transcript-status"}]},{"group":"Facts","pages":[{"title":"List Fact Groups","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /factgroups/","href":"/api-reference/facts/list-fact-groups"},{"title":"List Facts","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/facts/","href":"/api-reference/facts/list-facts"},{"title":"Add Facts","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /interactions/{id}/facts/","href":"/api-reference/facts/add-facts"},{"title":"Update Facts","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml patch /interactions/{id}/facts/","href":"/api-reference/facts/update-facts"},{"title":"Update Fact","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml patch /interactions/{id}/facts/{factId}","href":"/api-reference/facts/update-fact"},{"title":"Extract Facts","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /tools/extract-facts","href":"/api-reference/facts/extract-facts"}]},{"group":"Documents (Classic)","pages":[{"title":"List Documents","deprecated":true,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/documents/","href":"/api-reference/documents-classic/list-documents"},{"title":"Generate Document","deprecated":true,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /interactions/{id}/documents/","href":"/api-reference/documents-classic/generate-document"},{"title":"Get Document","deprecated":true,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/documents/{documentId}","href":"/api-reference/documents-classic/get-document"},{"title":"Delete Document","deprecated":true,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /interactions/{id}/documents/{documentId}","href":"/api-reference/documents-classic/delete-document"},{"title":"Update Document","deprecated":true,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml patch /interactions/{id}/documents/{documentId}","href":"/api-reference/documents-classic/update-document"}]},{"group":"Templates (Classic)","pages":[{"title":"List Template Sections","deprecated":true,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /templateSections/","href":"/api-reference/templates-classic/list-template-sections"},{"title":"List Templates","deprecated":true,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /templates/","href":"/api-reference/templates-classic/list-templates"},{"title":"Get Template","deprecated":true,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /templates/{key}","href":"/api-reference/templates-classic/get-template"}]},{"group":"Codes (Legacy)","pages":[{"title":"List Codes","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /interactions/{id}/codes/","href":"/api-reference/codes-legacy/list-codes"},{"title":"Select Codes","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml put /interactions/{id}/codes/","href":"/api-reference/codes-legacy/select-codes"},{"title":"Generate Codes","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /interactions/{id}/codes/","href":"/api-reference/codes-legacy/generate-codes"}]},{"group":"Codes","pages":[{"title":"Predict Codes","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /tools/coding/","href":"/api-reference/codes/predict-codes"}]},{"group":"FHIR","pages":[{"title":"Predict FHIR Resources","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /tools/fhir/","href":"/api-reference/fhir/predict-fhir-resources"}]},{"group":"Evaluations","pages":[{"title":"Evaluate Document Groundedness","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /tools/evaluations/text/documents/groundedness","href":"/api-reference/evaluations/evaluate-document-groundedness"},{"title":"Evaluate Document Completeness","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /tools/evaluations/text/documents/completeness","href":"/api-reference/evaluations/evaluate-document-completeness"},{"title":"Evaluate Document Conciseness","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /tools/evaluations/text/documents/conciseness","href":"/api-reference/evaluations/evaluate-document-conciseness"},{"title":"Segment Document","description":"Splits each section of the reference document into sentences.\nThe Evaluate Document Completeness operation (`POST /tools/evaluations/text/documents/completeness`) uses the same split for the reference annotations.\n\nTo make `referenceAnnotations` for the Evaluate Document Completeness operation, do these steps:\n1. Send the reference document to this operation.\n2. Add `importance`, `alignment` and `categories` to each span that you want to annotate.\n3. Send the annotated spans to the Evaluate Document Completeness operation in `referenceAnnotations`. Use the same `language` and `referenceDocument`.\n\nThe Evaluate Document Completeness operation uses `sectionId`, `start` and `end` to find the sentence for an annotation.\nThe `text` must also be equal to the text of the sentence.\n\nIf you change the language or the reference document, you should get new spans.\n\nThe API does not split a section that contains only whitespace. Such a section has no spans.\n\nThis operation does not use a language model. It does not use credits.\n","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /tools/evaluations/text/documents/segment","href":"/api-reference/evaluations/segment-document"},{"title":"Compare Documents using PDSQI-9","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /tools/evaluations/text/documents/pairwise/pdsqi9","href":"/api-reference/evaluations/compare-documents-using-pdsqi-9"}]},{"group":"Guided Templates","pages":[{"title":"List templates","description":"Returns a list of templates and their metadata. Fetch a specific templateId to get the expanded sections.\nUse query parameters to filter by language, region, specialty, label, publish status, or source.\n","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/templates/","href":"/api-reference/guided-templates/list-templates"},{"title":"Create template","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /documents/templates/","href":"/api-reference/guided-templates/create-template"},{"title":"Get template","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/templates/{templateID}","href":"/api-reference/guided-templates/get-template"},{"title":"Delete template","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /documents/templates/{templateID}","href":"/api-reference/guided-templates/delete-template"},{"title":"Update template metadata","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml patch /documents/templates/{templateID}","href":"/api-reference/guided-templates/update-template-metadata"},{"title":"List template versions","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/templates/{templateID}/versions/","href":"/api-reference/guided-templates/list-template-versions"},{"title":"Create template version","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /documents/templates/{templateID}/versions/","href":"/api-reference/guided-templates/create-template-version"},{"title":"Get template version","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/templates/{templateID}/versions/{versionID}","href":"/api-reference/guided-templates/get-template-version"},{"title":"Delete template version","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /documents/templates/{templateID}/versions/{versionID}","href":"/api-reference/guided-templates/delete-template-version"},{"title":"Publish template version","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /documents/templates/{templateID}/versions/{versionID}/publish","href":"/api-reference/guided-templates/publish-template-version"}]},{"group":"Guided Sections","pages":[{"title":"List sections","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/sections/","href":"/api-reference/guided-sections/list-sections"},{"title":"Create section","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /documents/sections/","href":"/api-reference/guided-sections/create-section"},{"title":"Get section","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/sections/{sectionID}","href":"/api-reference/guided-sections/get-section"},{"title":"Delete section","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /documents/sections/{sectionID}","href":"/api-reference/guided-sections/delete-section"},{"title":"Update section metadata","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml patch /documents/sections/{sectionID}","href":"/api-reference/guided-sections/update-section-metadata"},{"title":"List section versions","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/sections/{sectionID}/versions/","href":"/api-reference/guided-sections/list-section-versions"},{"title":"Create section version","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /documents/sections/{sectionID}/versions/","href":"/api-reference/guided-sections/create-section-version"},{"title":"Get section version","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/sections/{sectionID}/versions/{versionID}","href":"/api-reference/guided-sections/get-section-version"},{"title":"Delete section version","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /documents/sections/{sectionID}/versions/{versionID}","href":"/api-reference/guided-sections/delete-section-version"},{"title":"Publish section version","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /documents/sections/{sectionID}/versions/{versionID}/publish","href":"/api-reference/guided-sections/publish-section-version"},{"title":"Get section impact","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/sections/{sectionID}/impact","href":"/api-reference/guided-sections/get-section-impact"}]},{"group":"Guided Documents","pages":[{"title":"List documents","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/","href":"/api-reference/guided-documents/list-documents"},{"title":"Generate a structured document","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml post /documents/","href":"/api-reference/guided-documents/generate-a-structured-document"},{"title":"Get document","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /documents/{documentID}","href":"/api-reference/guided-documents/get-document"},{"title":"Delete document","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml delete /documents/{documentID}","href":"/api-reference/guided-documents/delete-document"},{"title":"Update document","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml patch /documents/{documentID}","href":"/api-reference/guided-documents/update-document"}]},{"group":"Languages","pages":[{"title":"List Languages","deprecated":null,"version":null,"openapi":"/api-reference/auto-generated-openapi.yml get /languages/","href":"/api-reference/languages/list-languages"}]}]},{"group":"Admin APIs","icon":"shield-check","pages":[{"group":"Auth","pages":[{"title":"Authenticate user and get access token","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml post /auth/token","href":"/api-reference/admin/auth/authenticate-user-and-get-access-token"}]},{"group":"Customers","pages":[{"title":"List customers for a project","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml get /projects/{projectId}/customers","href":"/api-reference/admin/customers/list-customers-for-a-project"},{"title":"Create a new customer","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml post /projects/{projectId}/customers","href":"/api-reference/admin/customers/create-a-new-customer"},{"title":"Delete a customer","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml delete /projects/{projectId}/customers/{customerId}","href":"/api-reference/admin/customers/delete-a-customer"},{"title":"Update a customer","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml patch /projects/{projectId}/customers/{customerId}","href":"/api-reference/admin/customers/update-a-customer"},{"title":"Get quotas for a customer","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml get /projects/{projectId}/customers/{customerId}/quotas","href":"/api-reference/admin/customers/get-quotas-for-a-customer"}]},{"group":"Projects","pages":[{"title":"Get quotas for all tenants within a project","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml get /projects/{projectId}/quotas","href":"/api-reference/admin/projects/get-quotas-for-all-tenants-within-a-project"}]},{"group":"Users","pages":[{"title":"List users for a customer","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml get /projects/{projectId}/customers/{customerId}/users","href":"/api-reference/admin/users/list-users-for-a-customer"},{"title":"Create a new user and add it to the customer","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml post /projects/{projectId}/customers/{customerId}/users","href":"/api-reference/admin/users/create-a-new-user-and-add-it-to-the-customer"},{"title":"Get a user by ID","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml get /projects/{projectId}/customers/{customerId}/users/{userId}","href":"/api-reference/admin/users/get-a-user-by-id"},{"title":"Update a user","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml patch /projects/{projectId}/customers/{customerId}/users/{userId}","href":"/api-reference/admin/users/update-a-user"},{"title":"Get usage consumption for a user within a time window","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml get /projects/{projectId}/customers/{customerId}/users/{userId}/consumption","href":"/api-reference/admin/users/get-usage-consumption-for-a-user-within-a-time-window"},{"title":"Delete a user","deprecated":null,"version":null,"openapi":"/api-reference/admin/admin-openapi.yml delete /projects/{projectId}/customers/{customerId}/users/{userId}/consumption","href":"/api-reference/admin/users/delete-a-user"}]}]},{"group":"Errors","icon":"triangle-alert","pages":[{"title":"Errors","href":"/api-reference/errors"}]},{"group":"Agentic APIs v1 (deprecated)","icon":"layers","pages":[{"group":"Agents","pages":[{"title":"List Agents","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml get /agents","href":"/agentic/agents/list-agents"},{"title":"Create Agent","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml post /agents","href":"/agentic/agents/create-agent"},{"title":"Get Agent by ID","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml get /agents/{id}","href":"/agentic/agents/get-agent-by-id"},{"title":"Delete Agent by ID","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml delete /agents/{id}","href":"/agentic/agents/delete-agent-by-id"},{"title":"Update Agent by ID","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml patch /agents/{id}","href":"/agentic/agents/update-agent-by-id"},{"title":"Get Agent Card","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml get /agents/{id}/agent-card.json","href":"/agentic/agents/get-agent-card"},{"title":"Send Message to Agent","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml post /agents/{id}/v1/message:send","href":"/agentic/agents/send-message-to-agent"},{"title":"Get Task by ID","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml get /agents/{id}/v1/tasks/{taskId}","href":"/agentic/agents/get-task-by-id"},{"title":"Get Context by ID","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml get /agents/{id}/v1/contexts/{contextId}","href":"/agentic/agents/get-context-by-id"},{"title":"Delete Context by ID","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml delete /agents/{id}/v1/contexts/{contextId}","href":"/agentic/agents/delete-context-by-id"},{"title":"List Registry Experts","deprecated":null,"version":null,"openapi":"/agentic/auto-generated-openapi.yml get /agents/registry/experts","href":"/agentic/agents/list-registry-experts"}]}]}]}]},"basePath":"","title":"Compare Documents using PDSQI-9 - Corti API Documentation","deploymentId":"dpl_Bzhd2vEuuXmvNaTmqBBYbeBj3epG","buildId":"dpl_Bzhd2vEuuXmvNaTmqBBYbeBj3epG","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-DZ-KnHzb.js","dist-BGepIklc.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-BjA2hsCJ.js","snippetPresets-C-jpv5v8.js","utils--9e24gKv.js","style-to-object-BY3JEAdk.js","utils-CL8e03UA.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-O60MhfkU.js","conditional-requirements-CFM0id0Q.js","cloneDeep-C2_HxuTC.js","_Uint8Array-CSzKbEgF.js","isObject-FP1Yky1u.js","ApiExamples-DrqwMm0N.js","usePlaygroundInputsStore-HwhVROcI.js","shallow-CE0cbB33.js","isEqual-XgMGHHxA.js","CodeSnippets-DeoWIzOC.js","CodeSnippet-nteBoAUV.js","use-playground-group-access-YOcO7c2y.js","Page-B_BHXdim.js","api-description-markdown-CQA9NkQd.js","DynamicMarkdown-DpB7I7uN.js","SectionHeading-CW6J1gzG.js","MethodPill-CaKMlCid.js","getPastedJson-Dkd8F-mU.js","Check2Icon-DLlJR2en.js","axios-CsQoIw0U.js","Markdown-CaF3VJGb.js","AssistantPageLink-DXtHv8Vo.js"]}