Fix Neo4jVectorStore max allowed dimension size to 4096
- The Neo4j "vector-2.0" index provider allows up to 4096 dimensions. - Remove upper dimension boundry check
This commit is contained in:
committed by
Christian Tzolov
parent
9026263fd0
commit
b9ba62507d
@@ -149,8 +149,7 @@ public class Neo4jVectorStore implements VectorStore, InitializingBean {
|
||||
*/
|
||||
public Builder withEmbeddingDimension(int newEmbeddingDimension) {
|
||||
|
||||
Assert.isTrue(newEmbeddingDimension >= 1 && newEmbeddingDimension <= 2048,
|
||||
"Dimension has to be withing the boundaries 1 and 2048 (inclusively)");
|
||||
Assert.isTrue(newEmbeddingDimension >= 1, "Dimension has to be positive.");
|
||||
|
||||
this.embeddingDimension = newEmbeddingDimension;
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user