Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public class RedisVectorStore extends AbstractObservationVectorStore implements

public static final String DEFAULT_PREFIX = "embedding:";

public static final Algorithm DEFAULT_VECTOR_ALGORITHM = Algorithm.HSNW;
public static final Algorithm DEFAULT_VECTOR_ALGORITHM = Algorithm.HNSW;

public static final String DISTANCE_FIELD_NAME = "vector_score";

Expand Down Expand Up @@ -443,7 +443,7 @@ private SchemaField schemaField(MetadataField field) {
}

private VectorAlgorithm vectorAlgorithm() {
if (this.vectorAlgorithm == Algorithm.HSNW) {
if (this.vectorAlgorithm == Algorithm.HNSW) {
return VectorAlgorithm.HNSW;
}
return VectorAlgorithm.FLAT;
Expand Down Expand Up @@ -477,7 +477,7 @@ public static Builder builder(JedisPooled jedis, EmbeddingModel embeddingModel)

public enum Algorithm {

FLAT, HSNW
FLAT, HNSW

}

Expand Down