From eef2b5e7a2fd568ef991eb9f730d8e568c78cf5e Mon Sep 17 00:00:00 2001 From: Drew Minnear Date: Mon, 2 Jun 2025 15:35:05 -0400 Subject: [PATCH 1/4] fix logic for mssql db creation --- vector_db/mssql_provider.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vector_db/mssql_provider.py b/vector_db/mssql_provider.py index c56722c..660c6df 100644 --- a/vector_db/mssql_provider.py +++ b/vector_db/mssql_provider.py @@ -134,9 +134,14 @@ def _ensure_database_exists(self) -> None: f"IF DB_ID('{database}') IS NULL CREATE DATABASE [{database}]" ) cursor.close() - except Exception as e: + except pyodbc.ProgrammingError as e: + if "1801" in str(e): + logger.info("Database %s already exists, continuing", database) + return logger.exception("Failed to ensure database '%s' exists", database) - raise RuntimeError(f"Failed to ensure database '{database}' exists: {e}") + raise RuntimeError( + f"Failed to ensure database '{database}' exists: {e}" + ) from e def add_documents(self, docs: List[Document]) -> None: """ From ecd3cd0eb3e4ecdac42486a56c638e1c55c04484 Mon Sep 17 00:00:00 2001 From: Drew Minnear Date: Mon, 2 Jun 2025 16:04:48 -0400 Subject: [PATCH 2/4] update hx_xet version --- requirements.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 6ab5d1b..dde6d2f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ beautifulsoup4==4.13.4 -hf_xet==1.0.3 +hf_xet==1.1.2 langchain-community==0.3.21 langchain-elasticsearch==0.3.2 langchain-huggingface==0.1.2 @@ -8,7 +8,6 @@ langchain-qdrant==0.2.0 langchain-sqlserver==0.1.1 langchain==0.3.23 psycopg[binary]==3.2.6 -psycopg2-binary==2.9.10 pyodbc==5.2.0 pypdf==5.4.0 python-dotenv==1.1.0 From 9659690567aeda75c5582f75d74ea5b6ae248aa8 Mon Sep 17 00:00:00 2001 From: Drew Minnear Date: Mon, 2 Jun 2025 16:33:46 -0400 Subject: [PATCH 3/4] update all dependencies --- requirements.txt | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/requirements.txt b/requirements.txt index dde6d2f..cb41b2e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,17 +1,18 @@ beautifulsoup4==4.13.4 hf_xet==1.1.2 -langchain-community==0.3.21 +langchain-community==0.3.24 langchain-elasticsearch==0.3.2 -langchain-huggingface==0.1.2 +langchain-huggingface==0.2.0 langchain-postgres==0.0.14 langchain-qdrant==0.2.0 -langchain-sqlserver==0.1.1 -langchain==0.3.23 -psycopg[binary]==3.2.6 +langchain-sqlserver==0.1.2 +langchain==0.3.25 +psycopg[binary]==3.2.9 +psycopg2-binary==2.9.10 pyodbc==5.2.0 -pypdf==5.4.0 +pypdf==5.6.0 python-dotenv==1.1.0 -qdrant-client==1.13.3 -redis==5.2.1 +qdrant-client==1.14.2 +redis==6.2.0 sentence-transformers==4.1.0 unstructured[md]==0.17.2 From f8d389c1adc20aba7a01d514fbb9221c30a5fba6 Mon Sep 17 00:00:00 2001 From: Drew Minnear Date: Mon, 2 Jun 2025 17:06:43 -0400 Subject: [PATCH 4/4] use older redis version for langchain --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index cb41b2e..c1acd1a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,6 +13,6 @@ pyodbc==5.2.0 pypdf==5.6.0 python-dotenv==1.1.0 qdrant-client==1.14.2 -redis==6.2.0 +redis==5.2.1 sentence-transformers==4.1.0 unstructured[md]==0.17.2