PromtEngineer / localGPT

Chat with your documents on your local device using GPT models. No data leaves your device and 100% private.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting error when I try to python ingest.py

vascubrian opened this issue · comments

@PromtEngineer
Traceback (most recent call last):
File "/Users/mac/Downloads/localGPT/ingest.py", line 7, in
from langchain.docstore.document import Document
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain/docstore/document.py", line 1, in
from langchain_core.documents import Document
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain_core/documents/init.py", line 5, in
from langchain_core.documents.base import Document
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain_core/documents/base.py", line 9, in
class Document(Serializable):
File "pydantic/main.py", line 198, in pydantic.main.ModelMetaclass.new
File "pydantic/fields.py", line 506, in pydantic.fields.ModelField.infer
File "pydantic/fields.py", line 436, in pydantic.fields.ModelField.init
File "pydantic/fields.py", line 552, in pydantic.fields.ModelField.prepare
File "pydantic/fields.py", line 668, in pydantic.fields.ModelField._type_analysis
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/typing.py", line 1134, in subclasscheck
return issubclass(cls, self.origin)
TypeError: issubclass() arg 1 must be a class