From 906e357f818d895e144b9f8ba9bda4fde577a5e2 Mon Sep 17 00:00:00 2001 From: DL Date: Sun, 25 Aug 2024 15:31:44 +0800 Subject: [PATCH 1/2] Update dependencies --- .gitignore | 2 ++ requirements.txt | 19 +++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 69e9510..d7660b9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ __pycache__/ *.py[cod] *$py.class .env +dev/* +output_images/ # C extensions *.so diff --git a/requirements.txt b/requirements.txt index 02d32fa..3f763e4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ -llama-cpp-python==0.2.78 -chromadb~=0.5 -langchain~=0.2.4 -langchain-community~=0.2.4 -langchain-openai~=0.1.8 +llama-cpp-python==0.2.88 +chromadb~=0.5.5 +langchain~=0.2.14 +langchain-community~=0.2.12 +langchain-openai~=0.1.22 langchain-huggingface~=0.0.3 pydantic~=2.7 transformers~=4.41 @@ -13,17 +13,17 @@ ebooklib==0.18 setuptools==67.7.2 loguru python-dotenv -accelerate~=0.22.0 +accelerate~=0.33 protobuf==3.20.2 termcolor -openai~=1.34.0 +openai~=1.41 einops # required for Mosaic models click bitsandbytes==0.43.1 # auto-gptq==0.2.0 InstructorEmbedding==1.0.1 unstructured~=0.14.5 -pymupdf==1.22.5 +pymupdf==1.24.9 streamlit~=1.28 python-docx~=1.1 six==1.16.0 ; python_version >= "3.10" and python_version < "4.0" @@ -35,5 +35,4 @@ tenacity==8.2.3 ; python_version >= "3.10" and python_version < "4.0" threadpoolctl==3.1.0 ; python_version >= "3.10" and python_version < "4.0" tiktoken==0.7.0 ; python_version >= "3.10" and python_version < "4.0" tokenizers==0.19.1; python_version >= "3.10" and python_version < "4.0" -tqdm==4.65.0 ; python_version >= "3.10" and python_version < "4.0" -# transformers==4.29.2 ; python_version >= "3.10" and python_version < "4.0" \ No newline at end of file +tqdm==4.65.0 ; python_version >= "3.10" and python_version < "4.0" \ No newline at end of file From 11f7cb1a2f883501fe1b510974b2399483c90e93 Mon Sep 17 00:00:00 2001 From: DL Date: Sun, 25 Aug 2024 15:37:29 +0800 Subject: [PATCH 2/2] Add uv installation instructions --- docs/installation.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/installation.rst b/docs/installation.rst index 5d96e2e..e1a32ce 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -23,9 +23,13 @@ Install Latest Version # Activate new environment source .venv/bin/activate - # Install packages + # Install packages using pip pip install pyllmsearch + # Optional - install packages using uv + pip install uv + uv pip install pyllmsearch + Install from source