Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
yoziru committed Oct 5, 2023
1 parent a26cf15 commit 1230041
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions pkg/plugin/vector/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,6 @@ type SearchResult struct {
Score float64 `json:"score"`
}

// exmaple filters
// only counter metrics
// {"<key>": {"$eq": "<value>"} }
// e.g.
// {"metric_type": {"$eq": "counter"} }
// {"year": {"$eq": 2007} }
// all counter or histogram metrics
//
// {
// "$or": [
// {
// "metric_type": {
// "$eq": "counter"
// }
// },
// {
// "metric_type": {
// "$eq": "histogram"
// }
// }
// ]
// }

type ReadVectorStore interface {
CollectionExists(ctx context.Context, collection string) (bool, error)
Search(ctx context.Context, collection string, vector []float32, topK uint64, filter map[string]interface{}) ([]SearchResult, error)
Expand Down

0 comments on commit 1230041

Please sign in to comment.