mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-03 19:57:51 +00:00
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>
This commit is contained in:
parent
c9f696f063
commit
405865c91a
@ -198,13 +198,9 @@ class SingleStoreDB(VectorStore):
|
|||||||
"""Add program name and version to connection attributes."""
|
"""Add program name and version to connection attributes."""
|
||||||
if "conn_attrs" not in self.connection_kwargs:
|
if "conn_attrs" not in self.connection_kwargs:
|
||||||
self.connection_kwargs["conn_attrs"] = dict()
|
self.connection_kwargs["conn_attrs"] = dict()
|
||||||
if "program_name" not in self.connection_kwargs["conn_attrs"]:
|
|
||||||
self.connection_kwargs["conn_attrs"][
|
self.connection_kwargs["conn_attrs"]["_connector_name"] = "langchain python sdk"
|
||||||
"program_name"
|
self.connection_kwargs["conn_attrs"]["_connector_version"] = "1.0.0"
|
||||||
] = "langchain python sdk"
|
|
||||||
self.connection_kwargs["conn_attrs"][
|
|
||||||
"program_version"
|
|
||||||
] = "0.0.205" # the version of SingleStoreDB VectorStore implementation
|
|
||||||
|
|
||||||
"""Create connection pool."""
|
"""Create connection pool."""
|
||||||
self.connection_pool = QueuePool(
|
self.connection_pool = QueuePool(
|
||||||
|
Loading…
Reference in New Issue
Block a user