Interface QueryResult

The result of a vector store query operation.

QueryResult

interface QueryResult {
    documents: RetrievedVectorDocument[];
    queryId?: string;
    stats?: Record<string, any>;
}

Properties

An array of retrieved documents, typically sorted by relevance (similarity score).

queryId?: string

An optional identifier for the query, useful for logging or diagnostics.

stats?: Record<string, any>

Optional statistics about the query execution (e.g., latency).