private-chatbot-mpt30b-langchain icon indicating copy to clipboard operation
private-chatbot-mpt30b-langchain copied to clipboard

trouble during setup

Open AeroSamplerAdmin opened this issue 1 year ago • 7 comments

hi Great project, wanted to try it, but having these problems during setup:

private-chatbot-mpt30b-langchain$ python ingest.py Traceback (most recent call last): File "/home/im/Downloads/private-chatbot-mpt30b-langchain/ingest.py", line 6, in from dotenv import load_dotenv ModuleNotFoundError: No module named 'dotenv'

and:

private-chatbot-mpt30b-langchain$ poetry run python chat.py Traceback (most recent call last): File "/home/im/Downloads/private-chatbot-mpt30b-langchain/chat.py", line 5, in from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler ModuleNotFoundError: No module named 'langchain'

Am I missing some dependencies or smth else? Seems like I might be missing smth related to LangChain (but already did: pip install langchain)?. rgds, IM

AeroSamplerAdmin avatar Jul 03 '23 08:07 AeroSamplerAdmin

This project uses poetry for managing the packages. Please follow the steps given in the installation exactly. pip install poetry cd <directory_where_you_cloned> poetry install cp .env.example .env python download_model.py

saradhix avatar Jul 03 '23 10:07 saradhix

Thx for your answer. I followed these steps before trying to run ingest etc. Kind rgs

man. 3. jul. 2023 kl. 12.29 skrev Vijayasaradhi @.***>:

This project uses poetry for managing the packages. Please follow the steps given in the installation exactly. pip install poetry cd <directory_where_you_cloned> poetry install cp .env.example .env python download_model.py

— Reply to this email directly, view it on GitHub https://github.com/mayooear/private-chatbot-mpt30b-langchain/issues/3#issuecomment-1617850080, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASTBDRFDAUB24PUFLJUNGP3XOKNG3ANCNFSM6AAAAAAZ4DJRKU . You are receiving this because you authored the thread.Message ID: @.***>

AeroSamplerAdmin avatar Jul 03 '23 10:07 AeroSamplerAdmin

python download_model.py Traceback (most recent call last): File "/workspace/ai/pgpt/private-chatbot-mpt30b-langchain/download_model.py", line 3, in from huggingface_hub import hf_hub_download ModuleNotFoundError: No module named 'huggingface_hub'

TouchstoneTheDev avatar Jul 09 '23 12:07 TouchstoneTheDev

I downloaded the bin file in models but now getting this error " python ingest.py Traceback (most recent call last): File "/workspace/ai/pgpt/private-chatbot-mpt30b-langchain/ingest.py", line 6, in from dotenv import load_dotenv ModuleNotFoundError: No module named 'dotenv'"

TouchstoneTheDev avatar Jul 09 '23 12:07 TouchstoneTheDev

If you have installed poetry and installed the required libraries, you can run poetry run python ingest.py

saradhix avatar Jul 10 '23 01:07 saradhix

i have installed langchain but still Traceback (most recent call last): File "D:\Office\RandD\Meta\LLAMA\private-chatbot-mpt30b-langchain\ingest.py", line 7, in from langchain.docstore.document import Document ModuleNotFoundError: No module named 'langchain'

mzubairumt avatar Aug 08 '23 11:08 mzubairumt

If you are using poetry, please use poetry run python to activate the right environment. Otherwise you can use pip in a new environment.

saradhix avatar Aug 09 '23 13:08 saradhix