Skip to content

Commit f476626

Browse files
leehautspring-builds
authored andcommitted
Fix typo: HSNW → HNSW
Fixes #4991 Signed-off-by: lance <leehaut@gmail.com> (cherry picked from commit 186808d)
1 parent 808dd7e commit f476626

File tree

1 file changed

+3
-3
lines changed
  • vector-stores/spring-ai-redis-store/src/main/java/org/springframework/ai/vectorstore/redis

1 file changed

+3
-3
lines changed

vector-stores/spring-ai-redis-store/src/main/java/org/springframework/ai/vectorstore/redis/RedisVectorStore.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public class RedisVectorStore extends AbstractObservationVectorStore implements
189189

190190
public static final String DEFAULT_PREFIX = "embedding:";
191191

192-
public static final Algorithm DEFAULT_VECTOR_ALGORITHM = Algorithm.HSNW;
192+
public static final Algorithm DEFAULT_VECTOR_ALGORITHM = Algorithm.HNSW;
193193

194194
public static final String DISTANCE_FIELD_NAME = "vector_score";
195195

@@ -443,7 +443,7 @@ private SchemaField schemaField(MetadataField field) {
443443
}
444444

445445
private VectorAlgorithm vectorAlgorithm() {
446-
if (this.vectorAlgorithm == Algorithm.HSNW) {
446+
if (this.vectorAlgorithm == Algorithm.HNSW) {
447447
return VectorAlgorithm.HNSW;
448448
}
449449
return VectorAlgorithm.FLAT;
@@ -477,7 +477,7 @@ public static Builder builder(JedisPooled jedis, EmbeddingModel embeddingModel)
477477

478478
public enum Algorithm {
479479

480-
FLAT, HSNW
480+
FLAT, HNSW
481481

482482
}
483483

0 commit comments

Comments
 (0)