Skip to content

VectorQueryParams

Parameters for querying a vector index.

optional filter?: VectorFilter;

Metadata filter in MongoDB-style operator syntax.


optional includeDocuments?: boolean;

Whether to include the stored document text. Default: true.


optional includeVectors?: boolean;

Whether to include the raw vectors in results. Default: false.


queryVector: readonly number[];

The query vector to find similar entries for.


optional topK?: number;

Maximum number of results to return. Default: 10.