Skip to content

Commit

Permalink
fixup! Vector Store: Add CrateDBVectorStore
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Dec 14, 2024
1 parent f33e0a8 commit 92c699e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion langchain_cratedb/vectorstores/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@

from langchain_cratedb.vectorstores.model import ModelFactory

DEFAULT_DISTANCE_STRATEGY = DistanceStrategy.COSINE
# CrateDB and Lucene currently only implement
# similarity based on the Euclidean distance.
#
# > Today, when creating a FLOAT_VECTOR, it uses the default
# > EUCLIDEAN_HNSW (L2) similarity.
# >
# > -- https://github.com/crate/crate/issues/15768
DEFAULT_DISTANCE_STRATEGY = DistanceStrategy.EUCLIDEAN


VST = TypeVar("VST", bound=VectorStore)
Expand Down

0 comments on commit 92c699e

Please sign in to comment.