You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Define HNSW index to support vector similarity search through the vector_l2_ops access method (Euclidean distance). The SQL operator for Euclidean distance is written as <->.
Does it mean that the HNSW index will only work with <-> operator?
Since here in the repo you are using the cosine similarity operator not the <->
Description
You have this comment from the pgvector playgroud repo
# Define HNSW index to support vector similarity search through the vector_l2_ops access method (Euclidean distance). The SQL operator for Euclidean distance is written as <->.
Does it mean that the HNSW index will only work with
<->
operator?Since here in the repo you are using the cosine similarity operator not the
<->
rag-postgres-openai-python/src/backend/fastapi_app/postgres_searcher.py
Line 48 in 61bde71
The text was updated successfully, but these errors were encountered: