Skip to content
Merged
Changes from all commits
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
3 changes: 3 additions & 0 deletions vector.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const (
IndexOptimizedForMemoryEfficient = "memory-efficient" // Flat or IVF,SQ4 indexes
IndexBIVFWithBackingFlat = "bivf-flat" // BFlat or BIVF with Flat backing index
IndexBIVFWithBackingSQ8 = "bivf-sq8" // BFlat or BIVF with SQ8 backing index
IndexIVFRaBitQ = "ivf,rabitq" // Flat or IVF,RaBitQ indexes
Comment thread
CascadingRadium marked this conversation as resolved.
)

const DefaultIndexOptimization = IndexOptimizedForRecall
Expand All @@ -69,6 +70,7 @@ var SupportedVectorIndexOptimizations = map[string]int{
IndexOptimizedForMemoryEfficient: 2,
IndexBIVFWithBackingFlat: 3,
IndexBIVFWithBackingSQ8: 4,
IndexIVFRaBitQ: 5,
}

// Reverse maps vector index optimizations': int -> string
Expand All @@ -78,6 +80,7 @@ var VectorIndexOptimizationsReverseLookup = map[int]string{
2: IndexOptimizedForMemoryEfficient,
3: IndexBIVFWithBackingFlat,
4: IndexBIVFWithBackingSQ8,
5: IndexIVFRaBitQ,
}

func OptimizationRequiresBinaryIndex(optimization string) bool {
Expand Down
Loading