Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MB-60029 - Add index types for tuning for recall/latency. #46

Merged
merged 6 commits into from
Jan 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions vector.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ type VectorField interface {
Dims() int
// Similarity metric to be used for scoring the vectors
Similarity() string
// index type - tuned for either latency/recall
metonymic-smokey marked this conversation as resolved.
Show resolved Hide resolved
IndexType() string
metonymic-smokey marked this conversation as resolved.
Show resolved Hide resolved
}

// -----------------------------------------------------------------------------
Expand All @@ -45,3 +47,8 @@ var SupportedSimilarityMetrics = map[string]struct{}{
EuclideanDistance: {},
CosineSimilarity: {},
}

const IndexTypeRecall = "recall"
metonymic-smokey marked this conversation as resolved.
Show resolved Hide resolved
const IndexTypeLatency = "latency"

const DefaultIndexType = IndexTypeRecall
Loading