AIAnytime / AIAnytime/Chat-with-PDF-Chatbot
AttributeError: __pydantic_private__
- Ngôn ngữ chính
- Python
- Star
- 176
- Fork
- 121
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
After running the file streamlit run chatbot_app.py, I am getting the below error.
All the libraries are installed properly.
What could be the reason?
AttributeError: __pydantic_private__
Traceback:
File "C:\GithubRepository\Chat-with-PDF-Chatbot\.venv\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 535, in _run_script
exec(code, module.__dict__)
File "C:\GithubRepository\Chat-with-PDF-Chatbot\chatbot_app.py", line 172, in
main()
File "C:\GithubRepository\Chat-with-PDF-Chatbot\chatbot_app.py", line 140, in main
ingested_data = data_ingestion()
File "C:\GithubRepository\Chat-with-PDF-Chatbot\.venv\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 212, in wrapper
return cached_func(*args, **kwargs)
File "C:\GithubRepository\Chat-with-PDF-Chatbot\.venv\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 241, in __call__
return self._get_or_create_cached_value(args, kwargs)
File "C:\GithubRepository\Chat-with-PDF-Chatbot\.venv\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 268, in _get_or_create_cached_value
return self._handle_cache_miss(cache, value_key, func_args, func_kwargs)
File "C:\GithubRepository\Chat-with-PDF-Chatbot\.venv\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 324, in _handle_cache_miss
computed_value = self._info.func(*func_args, **func_kwargs)
File "C:\GithubRepository\Chat-with-PDF-Chatbot\chatbot_app.py", line 47, in data_ingestion
db = Chroma.from_documents(texts, embeddings, persist_directory=persist_directory, client_settings=CHROMA_SETTINGS)
File "C:\GithubRepository\Chat-with-PDF-Chatbot\.venv\lib\site-packages\langchain\vectorstores\chroma.py", line 613, in from_documents
return cls.from_texts(
File "C:\GithubRepository\Chat-with-PDF-Chatbot\.venv\lib\site-packages\langchain\vectorstores\chroma.py", line 568, in from_texts
chroma_collection = cls(
File "C:\GithubRepository\Chat-with-PDF-Chatbot\.venv\lib\site-packages\langchain\vectorstores\chroma.py", line 126, in __init__
self._collection = self._client.get_or_create_collection(
File "C:\GithubRepository\Chat-with-PDF-Chatbot\.venv\lib\site-packages\chromadb\api\local.py", line 141, in get_or_create_collection
return self.create_collection(
File "C:\GithubRepository\Chat-with-PDF-Chatbot\.venv\lib\site-packages\chromadb\api\local.py", line 111, in create_collection
return Collection(
File "C:\GithubRepository\Chat-with-PDF-Chatbot\.venv\lib\site-packages\chromadb\api\models\Collection.py", line 52, in __init__
self._client = client
File "C:\GithubRepository\Chat-with-PDF-Chatbot\.venv\lib\site-packages\pydantic\main.py", line 776, in __setattr__
if self.__pydantic_private__ is None or name not in self.__private_attributes__:
File "C:\GithubRepository\Chat-with-PDF-Chatbot\.venv\lib\site-packages\pydantic\main.py", line 764, in __getattr__
return super().__getattribute__(item) # Raises AttributeError if appropriate
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.