Search Your PDF App using Langchain, ChromaDB, Sentence Transformers, and LaMiNi LM Model. This app is completely powered by Open Source Models. No OpenAI key is required.
MIT License
54
stars
41
forks
source link
ValueError: You are using a deprecated configuration of Chroma. #2
To keep it short, when I download your code and run, it throws the following error:
Traceback (most recent call last):
File "/Users/alucard/mambaforge/envs/searchpdf/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
exec(code, module.__dict__)
File "/Users/alucard/llama2/searchpdf/app.py", line 75, in <module>
main()
File "/Users/alucard/llama2/searchpdf/app.py", line 69, in main
answer, metadata = process_answer(question)
File "/Users/alucard/llama2/searchpdf/app.py", line 44, in process_answer
qa = qa_llm()
File "/Users/alucard/mambaforge/envs/searchpdf/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 211, in wrapper
return cached_func(*args, **kwargs)
File "/Users/alucard/mambaforge/envs/searchpdf/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 240, in __call__
return self._get_or_create_cached_value(args, kwargs)
File "/Users/alucard/mambaforge/envs/searchpdf/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 266, in _get_or_create_cached_value
return self._handle_cache_miss(cache, value_key, func_args, func_kwargs)
File "/Users/alucard/mambaforge/envs/searchpdf/lib/python3.10/site-packages/streamlit/runtime/caching/cache_utils.py", line 320, in _handle_cache_miss
computed_value = self._info.func(*func_args, **func_kwargs)
File "/Users/alucard/llama2/searchpdf/app.py", line 36, in qa_llm
db = Chroma(persist_directory="db", embedding_function=embeddings, client_settings=CHROMA_SETTINGS)
File "/Users/alucard/mambaforge/envs/searchpdf/lib/python3.10/site-packages/langchain/vectorstores/chroma.py", line 119, in __init__
self._client = chromadb.Client(_client_settings)
File "/Users/alucard/mambaforge/envs/searchpdf/lib/python3.10/site-packages/chromadb/__init__.py", line 140, in Client
system = System(settings)
File "/Users/alucard/mambaforge/envs/searchpdf/lib/python3.10/site-packages/chromadb/config.py", line 227, in __init__
if settings[key] is not None:
File "/Users/alucard/mambaforge/envs/searchpdf/lib/python3.10/site-packages/chromadb/config.py", line 164, in __getitem__
raise ValueError(LEGACY_ERROR)
ValueError: You are using a deprecated configuration of Chroma.
It seems that Chroma has been updated but your code did not reflect that.
Just in case you want to know, here is the list when I run conda list.
To keep it short, when I download your code and run, it throws the following error:
It seems that Chroma has been updated but your code did not reflect that.
Just in case you want to know, here is the list when I run
conda list
.Chromadb is
0.4.8
Can you please help?
Thank you.