Skip to content

Commit

Permalink
MB-61009: Raise max supported dimensionality of vectors to 4096 (#2015)
Browse files Browse the repository at this point in the history
+ Allow calling application to change min/max.
+ Will require downstream changes to disallow any setting greater
  than 2048 in the event of a mixed version cluster.
  • Loading branch information
abhinavdangeti committed Apr 25, 2024
1 parent b344994 commit 63e9c3f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mapping/mapping_vectors.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ import (
index "github.com/blevesearch/bleve_index_api"
)

// Min and Max allowed dimensions for a vector field
const (
// Min and Max allowed dimensions for a vector field;
// p.s must be set/updated at process init() _only_
var (
MinVectorDims = 1
MaxVectorDims = 2048
MaxVectorDims = 4096
)

func NewVectorFieldMapping() *FieldMapping {
Expand Down

0 comments on commit 63e9c3f

Please sign in to comment.