Skip to content

Commit

Permalink
MB-60943: Index optimization refactor memory -> memory-efficient (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavdangeti authored Jun 3, 2024
1 parent f4827a8 commit 8796fc8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions vector.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,22 @@ var SupportedSimilarityMetrics = map[string]struct{}{
// -----------------------------------------------------------------------------

const (
IndexOptimizedForRecall = "recall"
IndexOptimizedForLatency = "latency"
IndexOptimizedForMemory = "memory"
IndexOptimizedForRecall = "recall"
IndexOptimizedForLatency = "latency"
IndexOptimizedForMemoryEfficient = "memory-efficient"
)

const DefaultIndexOptimization = IndexOptimizedForRecall

var SupportedVectorIndexOptimizations = map[string]int{
IndexOptimizedForRecall: 0,
IndexOptimizedForLatency: 1,
IndexOptimizedForMemory: 2,
IndexOptimizedForRecall: 0,
IndexOptimizedForLatency: 1,
IndexOptimizedForMemoryEfficient: 2,
}

// Reverse maps vector index optimizations': int -> string
var VectorIndexOptimizationsReverseLookup = map[int]string{
0: IndexOptimizedForRecall,
1: IndexOptimizedForLatency,
2: IndexOptimizedForMemory,
2: IndexOptimizedForMemoryEfficient,
}

0 comments on commit 8796fc8

Please sign in to comment.