Skip to content

Commit

Permalink
Merge pull request #91 from grafana/vector-search-add-filters
Browse files Browse the repository at this point in the history
vector: add support for filtered vector search
  • Loading branch information
yoziru authored Oct 17, 2023
2 parents ae226f7 + 73a1c26 commit 3e9390c
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 3e9390c

Please sign in to comment.