Interface SourceCitation

A citation referencing a source used in generating the final answer.

interface SourceCitation {
    path: string;
    heading: string;
    relevanceScore: number;
    matchType: "vector" | "graph" | "research";
}

Properties

path: string

File path or document path of the cited source.

heading: string

Section heading within the source, if applicable.

relevanceScore: number

Relevance score of the cited source (0 to 1). Inherited from the highest-scoring chunk from this source.

matchType: "vector" | "graph" | "research"

Which retrieval method produced the cited source.

See

RetrievedChunk.matchType