AIAnytime / Chat-with-PDF-Chatbot

This Chatbot is an interactive app developed to assist users to interact with their PDF. It is built using Open Source Stack. No OpenAI is required.
MIT License
144 stars 110 forks source link

raise ValueError(LEGACY_ERROR) ValueError: You are using a deprecated configuration of Chroma. #18

Open MuvvaThriveni opened 8 months ago

MuvvaThriveni commented 8 months ago

Getting error: raise ValueError(LEGACY_ERROR) ValueError: You are using a deprecated configuration of Chroma. while runnig ingest.py

These are the versions i have installed:

streamlit==1.24.0 langchain==0.0.354 transformers==4.36.2 torch==2.1.2 einops==0.6.1 bitsandbytes==0.41.1 accelerate==0.21.0 pdfminer.six==20221105 bs4==0.0.1 sentence_transformers duckdb==0.7.1 chromadb==0.4.22 beautifulsoup4==4.12.2 sentence-transformers==2.2.2 sentencepiece==0.1.99 six==1.16.0 requests==2.31.0 uvicorn==0.25.0 torchvision==0.16.2 streamlit-chat==0.1.1 pypdf

And Then found one solution to slove the above error by Downgrading chromadb version to 0.3.29 Here again facing some error:

Building wheel for hnswlib (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for hnswlib (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [5 lines of output] running bdist_wheel running build running build_ext building 'hnswlib' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for hnswlib Failed to build hnswlib ERROR: Could not build wheels for hnswlib, which is required to install pyproject.toml-based projects

CAN ANYONE HELP ME TO SOLVE THE ERROR

MuvvaThriveni commented 8 months ago

@AIAnytime please help me to solve the above problem