Skip to content

Commit

Permalink
Modified init method and merged upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
am-kinetica committed Feb 13, 2024
1 parent 555dba0 commit 2ed2a00
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libs/community/langchain_community/vectorstores/kinetica.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,7 @@ def __init__(
Defaults to None.
"""

self.dimensions = (
int(Dimension.OPENAI)
if dimensions is None or not isinstance(dimensions, int) or dimensions <= 0
else dimensions
)
self.dimensions = dimensions

self._config = config
self.embedding_function = embedding_function
Expand Down

0 comments on commit 2ed2a00

Please sign in to comment.