Circle V2 API Docs
    Preparing search index...

    Type Alias NormalizedContextSource

    Normalized form_answers.context_sources element. At-rest variants observed in prod: the current 5-key {document_id, document_type, name, page, quote} shape, a 3-key {name, page, quote} shape, camelCase {documentId, documentType} rows, doc_id / patient_chart_id id-key variants, 4-key rows missing page, and page as a string on older rows. All normalize here, null-filling missing keys.

    type NormalizedContextSource = {
        documentId: string | null;
        documentType: string | null;
        name: string | null;
        page: number | null;
        quote: string | null;
    }
    Index

    Properties

    documentId: string | null
    documentType: string | null

    pdf or patient_evaluation in prod; kept open for tolerance.

    name: string | null
    page: number | null
    quote: string | null