ChuloAI / BrainChulo

Harnessing the Memory Power of the Camelids
MIT License
145 stars 11 forks source link

Error: cannot import name 'TextLoader' from 'langchain.document_loaders' #12

Closed brinrbc closed 1 year ago

brinrbc commented 1 year ago

Hi! Thank you. I can't figure out what needs to be done, any ideas? There is no TextLoader file at langchain.document_loaders, only Text. I tried different names (I thought maybe instead of TextLoader the name should be Text)-nothing worked.

from app.conversations.document_based import DocumentBasedConversation
  File "/Users/user/GitHub/BrainChulo/app/conversations/document_based.py", line 1, in <module>
    from langchain.document_loaders import TextLoader
ImportError: cannot import name 'TextLoader' from 'langchain.document_loaders' (unknown location)
iGavroche commented 1 year ago

did you run pip install -r requirements.txt before running gradio main.py ?

alternatively, install docker and just run docker-compose up from the root directory, this might be simpler.

iGavroche commented 1 year ago

also, if you have further issues you should join our Discord. Link is in the README.md file

brinrbc commented 1 year ago

did you run pip install -r requirements.txt before running gradio main.py ?

alternatively, install docker and just run docker-compose up from the root directory, this might be simpler.

Thank you for your help. So far, this has not solved the problem, as it turned out that almost everything that can be conflicts with other programs, while I will deal with this. Thanks!