Skip to content

Commit

Permalink
Added support for DOT_PRODUCT distance for BigQueryVectorStore. (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
francislan authored Oct 15, 2024
1 parent b25bd98 commit 9e90ad2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ class BigQueryVectorStore(BaseBigQueryVectorStore):
credentials: Optional Google Cloud credentials object.
embedding_dimension: Dimension of the embedding vectors (inferred if not
provided).
distance_type (Literal["COSINE", "EUCLIDEAN"]): The distance metric used for
similarity search. Defaults to "EUCLIDEAN".
distance_type (Literal["COSINE", "EUCLIDEAN", "DOT_PRODUCT"]): The distance
metric used for similarity search. Defaults to "EUCLIDEAN".
"""

distance_type: Literal["COSINE", "EUCLIDEAN"] = "EUCLIDEAN"
distance_type: Literal["COSINE", "EUCLIDEAN", "DOT_PRODUCT"] = "EUCLIDEAN"
_creating_index: bool = False
_have_index: bool = False
_last_index_check: datetime = datetime.min
Expand Down

0 comments on commit 9e90ad2

Please sign in to comment.