Skip to content

Commit

Permalink
vector: add support for filtered vector search
Browse files Browse the repository at this point in the history
  • Loading branch information
yoziru committed Oct 17, 2023
1 parent d4f70ac commit 22aa44f
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit 22aa44f

Please sign in to comment.