From 405865c91a543dcd441a81b4f2e32b1debb41c8d Mon Sep 17 00:00:00 2001 From: volodymyr-memsql <57520563+volodymyr-memsql@users.noreply.github.com> Date: Wed, 5 Jul 2023 03:12:56 +0300 Subject: [PATCH] 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 --- langchain/vectorstores/singlestoredb.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/langchain/vectorstores/singlestoredb.py b/langchain/vectorstores/singlestoredb.py index b9fa63ede4..fd10358352 100644 --- a/langchain/vectorstores/singlestoredb.py +++ b/langchain/vectorstores/singlestoredb.py @@ -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(