From b3210f8cf01490be099ac9785c50d7d75cda950a Mon Sep 17 00:00:00 2001 From: Fangyin Cheng Date: Sat, 11 May 2024 14:34:23 +0800 Subject: [PATCH 1/2] fix: Upgrade spacy model --- docker/base/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/base/Dockerfile b/docker/base/Dockerfile index b4816d68c..268913683 100644 --- a/docker/base/Dockerfile +++ b/docker/base/Dockerfile @@ -36,9 +36,9 @@ RUN pip3 install --upgrade pip -i $PIP_INDEX_URL \ RUN (if [ "${LANGUAGE}" = "zh" ]; \ # language is zh, download zh_core_web_sm from github - then wget https://github.com/explosion/spacy-models/releases/download/zh_core_web_sm-3.5.0/zh_core_web_sm-3.5.0-py3-none-any.whl -O /tmp/zh_core_web_sm-3.5.0-py3-none-any.whl \ - && pip3 install /tmp/zh_core_web_sm-3.5.0-py3-none-any.whl -i $PIP_INDEX_URL \ - && rm /tmp/zh_core_web_sm-3.5.0-py3-none-any.whl; \ + then wget https://github.com/explosion/spacy-models/releases/download/zh_core_web_sm-3.7.0/zh_core_web_sm-3.7.0-py3-none-any.whl -O /tmp/zh_core_web_sm-3.7.0-py3-none-any.whl \ + && pip3 install /tmp/zh_core_web_sm-3.7.0-py3-none-any.whl -i $PIP_INDEX_URL \ + && rm /tmp/zh_core_web_sm-3.7.0-py3-none-any.whl; \ # not zh, download directly else python3 -m spacy download zh_core_web_sm; \ fi;) \ From 49638458c1b53a8b964de7fe45730b1272649e69 Mon Sep 17 00:00:00 2001 From: Fangyin Cheng Date: Sat, 11 May 2024 14:45:40 +0800 Subject: [PATCH 2/2] chore: Fix pylint error --- dbgpt/storage/vector_store/chroma_store.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbgpt/storage/vector_store/chroma_store.py b/dbgpt/storage/vector_store/chroma_store.py index 094f3e6d9..cde853843 100644 --- a/dbgpt/storage/vector_store/chroma_store.py +++ b/dbgpt/storage/vector_store/chroma_store.py @@ -82,7 +82,7 @@ def __init__(self, vector_store_config: ChromaVectorConfig) -> None: # client_settings=chroma_settings, client=client, collection_metadata=collection_metadata, - ) # type: ignore + ) # type: ignore def similar_search( self, text, topk, filters: Optional[MetadataFilters] = None