From 23bfd4683c9a1957994921b2a7a6fc7c236a126e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 13 May 2025 20:32:17 +0000 Subject: [PATCH 1/5] build(deps): bump flask from 3.1.0 to 3.1.1 in /application Bumps [flask](https://github.com/pallets/flask) from 3.1.0 to 3.1.1. - [Release notes](https://github.com/pallets/flask/releases) - [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst) - [Commits](https://github.com/pallets/flask/compare/3.1.0...3.1.1) --- updated-dependencies: - dependency-name: flask dependency-version: 3.1.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- application/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/requirements.txt b/application/requirements.txt index 2a6926dd..b503b896 100644 --- a/application/requirements.txt +++ b/application/requirements.txt @@ -11,7 +11,7 @@ elasticsearch==8.17.1 escodegen==1.0.11 esprima==4.0.1 esutils==1.0.1 -Flask==3.1.0 +Flask==3.1.1 faiss-cpu==1.9.0.post1 flask-restx==1.3.0 google-genai==1.3.0 From 63c69128413badbca10d2ff456a0bf06119f75c6 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 14 May 2025 21:45:30 +0100 Subject: [PATCH 2/5] lazy load elasticsearch --- application/requirements.txt | 3 --- application/vectorstore/elasticsearch.py | 9 ++------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/application/requirements.txt b/application/requirements.txt index b503b896..c51c2324 100644 --- a/application/requirements.txt +++ b/application/requirements.txt @@ -6,8 +6,6 @@ dataclasses-json==0.6.7 docx2txt==0.8 duckduckgo-search==7.5.2 ebooklib==0.18 -elastic-transport==8.17.0 -elasticsearch==8.17.1 escodegen==1.0.11 esprima==4.0.1 esutils==1.0.1 @@ -18,7 +16,6 @@ google-genai==1.3.0 google-generativeai==0.8.5 gTTS==2.5.4 gunicorn==23.0.0 -html2text==2024.2.26 javalang==0.13.0 jinja2==3.1.6 jiter==0.8.2 diff --git a/application/vectorstore/elasticsearch.py b/application/vectorstore/elasticsearch.py index e393e4a5..dfa0314f 100644 --- a/application/vectorstore/elasticsearch.py +++ b/application/vectorstore/elasticsearch.py @@ -1,9 +1,6 @@ from application.vectorstore.base import BaseVectorStore from application.core.settings import settings from application.vectorstore.document_class import Document -import elasticsearch - - class ElasticsearchStore(BaseVectorStore): @@ -26,8 +23,7 @@ class ElasticsearchStore(BaseVectorStore): else: raise ValueError("Please provide either elasticsearch_url or cloud_id.") - - + import elasticsearch ElasticsearchStore._es_connection = elasticsearch.Elasticsearch(**connection_params) self.docsearch = ElasticsearchStore._es_connection @@ -155,8 +151,6 @@ class ElasticsearchStore(BaseVectorStore): **kwargs, ): - from elasticsearch.helpers import BulkIndexError, bulk - bulk_kwargs = bulk_kwargs or {} import uuid embeddings = [] @@ -189,6 +183,7 @@ class ElasticsearchStore(BaseVectorStore): if len(requests) > 0: + from elasticsearch.helpers import BulkIndexError, bulk try: success, failed = bulk( self._es_connection, From 0d45c44c6f513528abc3d55a631a0ef641441531 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 14 May 2025 20:47:44 +0000 Subject: [PATCH 3/5] build(deps): bump prompt-toolkit from 3.0.50 to 3.0.51 in /application Bumps [prompt-toolkit](https://github.com/prompt-toolkit/python-prompt-toolkit) from 3.0.50 to 3.0.51. - [Release notes](https://github.com/prompt-toolkit/python-prompt-toolkit/releases) - [Changelog](https://github.com/prompt-toolkit/python-prompt-toolkit/blob/main/CHANGELOG) - [Commits](https://github.com/prompt-toolkit/python-prompt-toolkit/compare/3.0.50...3.0.51) --- updated-dependencies: - dependency-name: prompt-toolkit dependency-version: 3.0.51 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- application/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/requirements.txt b/application/requirements.txt index c51c2324..09c94f0e 100644 --- a/application/requirements.txt +++ b/application/requirements.txt @@ -50,7 +50,7 @@ pillow==11.1.0 portalocker==3.1.1 prance==23.6.21.0 primp==0.14.0 -prompt-toolkit==3.0.50 +prompt-toolkit==3.0.51 protobuf==5.29.3 psycopg2-binary==2.9.10 py==1.11.0 From e7d54a639e07e3c1b158be26216e6372e0e3b186 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 14 May 2025 20:50:26 +0000 Subject: [PATCH 4/5] build(deps): bump yarl from 1.18.3 to 1.20.0 in /application Bumps [yarl](https://github.com/aio-libs/yarl) from 1.18.3 to 1.20.0. - [Release notes](https://github.com/aio-libs/yarl/releases) - [Changelog](https://github.com/aio-libs/yarl/blob/master/CHANGES.rst) - [Commits](https://github.com/aio-libs/yarl/compare/v1.18.3...v1.20.0) --- updated-dependencies: - dependency-name: yarl dependency-version: 1.20.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- application/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/requirements.txt b/application/requirements.txt index 09c94f0e..3c32ff60 100644 --- a/application/requirements.txt +++ b/application/requirements.txt @@ -81,7 +81,7 @@ urllib3==2.3.0 vine==5.1.0 wcwidth==0.2.13 werkzeug==3.1.3 -yarl==1.18.3 +yarl==1.20.0 markdownify==0.14.1 tldextract==5.1.3 websockets==14.1 From b2809b2e9a59121b3b54603ca05e77500555f2be Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 14 May 2025 22:03:27 +0100 Subject: [PATCH 5/5] remove old deps --- application/requirements.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/application/requirements.txt b/application/requirements.txt index 3c32ff60..2430a787 100644 --- a/application/requirements.txt +++ b/application/requirements.txt @@ -13,7 +13,6 @@ Flask==3.1.1 faiss-cpu==1.9.0.post1 flask-restx==1.3.0 google-genai==1.3.0 -google-generativeai==0.8.5 gTTS==2.5.4 gunicorn==23.0.0 javalang==0.13.0 @@ -49,7 +48,6 @@ pathable==0.4.4 pillow==11.1.0 portalocker==3.1.1 prance==23.6.21.0 -primp==0.14.0 prompt-toolkit==3.0.51 protobuf==5.29.3 psycopg2-binary==2.9.10