Interface: SearchPlan
Defined in: src/batteries/vector/plan.ts:27
A compiled nearest-neighbour search operation, consumed by an adapter's executeSearch.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
collection | string | Collection to search. | src/batteries/vector/plan.ts:29 |
filter? | VectorFilter | Optional metadata filter applied alongside the vector search. | src/batteries/vector/plan.ts:42 |
near? | | { vector: number[]; } | { serverText: string; } | { id: string; } | The nearest-neighbour anchor: a client vector, server-embedded text, or an existing record id. | src/batteries/vector/plan.ts:31 |
offset? | number | Number of leading matches to skip. | src/batteries/vector/plan.ts:46 |
projection | Projection | Which fields each match projects. | src/batteries/vector/plan.ts:48 |
topK | number | Maximum number of matches to return. | src/batteries/vector/plan.ts:44 |