Skip to content

Commit

Permalink
fixed dot_product
Browse files Browse the repository at this point in the history
  • Loading branch information
daimor committed Jul 22, 2024
1 parent 96bd824 commit 9bfd157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langchain_iris/vectorstores.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def distance_strategy(self) -> str:
if self._distance_strategy == DistanceStrategy.COSINE:
return self.table.c.embedding.cosine
elif self._distance_strategy == DistanceStrategy.DOT_PRODUCT:
return self.table.c.embedding.DOT_product
return self.table.c.embedding.max_inner_product
# elif self._distance_strategy == DistanceStrategy.EUCLIDEAN:
# return "langchain_l2_distance"
else:
Expand Down

0 comments on commit 9bfd157

Please sign in to comment.