feat(SingleStoreVectorStore): change connection attributes in the database connection (#7142)

Minor change to the SingleStoreVectorStore:

Updated connection attributes names according to the SingleStoreDB
recommendations

@rlancemartin, @eyurtsev

---------

Co-authored-by: Volodymyr Tkachuk <vtkachuk-ua@singlestore.com>
pull/7167/head
volodymyr-memsql 1 year ago committed by GitHub
parent c9f696f063
commit 405865c91a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -198,13 +198,9 @@ class SingleStoreDB(VectorStore):
"""Add program name and version to connection attributes."""
if "conn_attrs" not in self.connection_kwargs:
self.connection_kwargs["conn_attrs"] = dict()
if "program_name" not in self.connection_kwargs["conn_attrs"]:
self.connection_kwargs["conn_attrs"][
"program_name"
] = "langchain python sdk"
self.connection_kwargs["conn_attrs"][
"program_version"
] = "0.0.205" # the version of SingleStoreDB VectorStore implementation
self.connection_kwargs["conn_attrs"]["_connector_name"] = "langchain python sdk"
self.connection_kwargs["conn_attrs"]["_connector_version"] = "1.0.0"
"""Create connection pool."""
self.connection_pool = QueuePool(

Loading…
Cancel
Save