Interface: QueryResult
Defined in: packages/agentos/src/rag/IVectorStore.ts:157
The result of a vector store query operation.
QueryResult
Properties
documents
documents:
RetrievedVectorDocument[]
Defined in: packages/agentos/src/rag/IVectorStore.ts:158
An array of retrieved documents, typically sorted by relevance (similarity score).
queryId?
optionalqueryId:string
Defined in: packages/agentos/src/rag/IVectorStore.ts:159
An optional identifier for the query, useful for logging or diagnostics.
stats?
optionalstats:Record<string,any>
Defined in: packages/agentos/src/rag/IVectorStore.ts:160
Optional statistics about the query execution (e.g., latency).