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 d4f70ac + 22aa44f commit 4ba349b
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 4ba349b

Please sign in to comment.