Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

vector: add support for filtered vector search #91

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/llms/vector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ export interface SearchRequest {
* Defaults to 10.
**/
topK?: number;

/** Metadata filters to apply to the vector search. */
/* example: filter: { metric_type: { $eq: 'histogram' } } */
filter?: Record<string, any>;
}

/**
Expand Down