AIAnytime / AIAnytime/Chat-with-PDF-Chatbot

pydantic error

Đang mở
#11 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
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ả

%USERPROFILE%\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\cextension.py:34: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
warn("The installed version of bitsandbytes was compiled without GPU support. "
'NoneType' object has no attribute 'cadam32bit_grad_fp32'
Creating embeddings. May take some minutes...
Traceback (most recent call last):
File "D:\chatpdf\Chat-with-PDF-Chatbot\ingest.py", line 32, in
main()
File "D:\chatpdf\Chat-with-PDF-Chatbot\ingest.py", line 25, in main
db = Chroma.from_documents(texts, embeddings, persist_directory=persist_directory, client_settings=CHROMA_SETTINGS)
File "%USERPROFILE%\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\vectorstores\chroma.py", line 613, in from_documents
return cls.from_texts(
File "%USERPROFILE%\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\vectorstores\chroma.py", line 568, in from_texts
chroma_collection = cls(
File "%USERPROFILE%\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\vectorstores\chroma.py", line 126, in __init__
self._collection = self._client.get_or_create_collection(
File "%USERPROFILE%\AppData\Local\Programs\Python\Python310\lib\site-packages\chromadb\api\local.py", line 141, in get_or_create_collection
return self.create_collection(
File "%USERPROFILE%\AppData\Local\Programs\Python\Python310\lib\site-packages\chromadb\api\local.py", line 111, in create_collection
return Collection(
File "%USERPROFILE%\AppData\Local\Programs\Python\Python310\lib\site-packages\chromadb\api\models\Collection.py", line 52, in __init__
self._client = client
File "%USERPROFILE%\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic\main.py", line 768, in __setattr__
if self.__pydantic_private__ is None or name not in self.__private_attributes__:
File "%USERPROFILE%\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic\main.py", line 756, in __getattr__
return super().__getattribute__(item) # Raises AttributeError if appropriate
AttributeError: 'Collection' object has no attribute '__pydantic_private__'. Did you mean: '__pydantic_complete__'?

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á.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.