Skip to content

Commit 822576b

Browse files
jitokimilayaperumalg
authored andcommitted
Fix typo in PgDistanceType enum class
Signed-off-by: jitokim <[email protected]>
1 parent 224191a commit 822576b

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

vector-stores/spring-ai-pgvector-store/src/main/java/org/springframework/ai/vectorstore/pgvector/PgVectorStore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,14 +495,14 @@ public enum PgIndexType {
495495
*/
496496
public enum PgDistanceType {
497497

498-
// NOTE: works only if If vectors are normalized to length 1 (like OpenAI
498+
// NOTE: works only if vectors are normalized to length 1 (like OpenAI
499499
// embeddings), use inner product for best performance.
500500
// The Sentence transformers are NOT normalized:
501501
// https://github.com/UKPLab/sentence-transformers/issues/233
502502
EUCLIDEAN_DISTANCE("<->", "vector_l2_ops",
503503
"SELECT *, embedding <-> ? AS distance FROM %s WHERE embedding <-> ? < ? %s ORDER BY distance LIMIT ? "),
504504

505-
// NOTE: works only if If vectors are normalized to length 1 (like OpenAI
505+
// NOTE: works only if vectors are normalized to length 1 (like OpenAI
506506
// embeddings), use inner product for best performance.
507507
// The Sentence transformers are NOT normalized:
508508
// https://github.com/UKPLab/sentence-transformers/issues/233

0 commit comments

Comments
 (0)