From 22aa44feb59886a2e113bdd369c0e70102e12cbc Mon Sep 17 00:00:00 2001 From: Yasir Ekinci Date: Tue, 17 Oct 2023 10:48:02 +0200 Subject: [PATCH] vector: add support for filtered vector search --- src/llms/vector.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/llms/vector.ts b/src/llms/vector.ts index 486ecf6..75e5d2b 100644 --- a/src/llms/vector.ts +++ b/src/llms/vector.ts @@ -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; } /**