Leon-Sander / local_multimodal_ai_chat

GNU General Public License v3.0
101 stars 66 forks source link

Type error occurred while handling pdf #8

Open DEVdv2006 opened 5 months ago

DEVdv2006 commented 5 months ago

I am working on windows,where I encountered this type error it states that INSTRUCTOR._load_sbert_model() got an unexpected argument 'token', I guess this error occurred due to version issues of sentences -transformers , currently I am using sentence -transformers version 2.3.1, previously I was using version 2.2.2 where it causes an import error that states that dependencies of InstructorEmbedding not found, I guess the root issue is related to sentence -transformers versions IMG_20240201_192029

lauraramoningelan commented 4 months ago

I had the same problem and it worked for me to do "pip uninstall sentence-transformers" and then reinstall the library with "pip install sentence-transformers==2.2.2".

krshubhamm commented 4 months ago

image

Can you please help me to solve this issue as i had already installed chromadb

Leon-Sander commented 4 months ago

@krshubhamm do you have Microsoft Visual C++ 14.0 or greater installed as mentioned in the error message?

krshubhamm commented 4 months ago

no do i have to install c++??

Leon-Sander commented 4 months ago

Yes it seems that you have to install it. "hnsw", the underlying implementetion of many vector databases seems to work with C++, which makes sense for speed purposes. I would suggest that you follow the link mentioned in the error message and install the newest Microsoft Visual C++ version.

DEVdv2006 commented 4 months ago

image

Can you please help me to solve this issue as i had already installed chromadb

Go to the link given in error and download it ,I think it will solve the problem

krshubhamm commented 4 months ago

Screenshot (12)

How should i resolve this .I think there is some issue in my chat history

Leon-Sander commented 4 months ago

@krshubhamm In the config file just add "/" to the chat sessions path, so it looks like this: chat_history_path: "./chat_sessions/"

I would recommend downloading the newest version of the code, which saves and loads the chat sessions in a database. After downloading, you need to run python database_operations.py first to create the database.

lauraramoningelan commented 4 months ago

Screenshot (12)

How should i resolve this .I think there is some issue in my chat history

Have you tried changing the time format? Instead of : , change it to _ or - ?

Shmoji commented 3 months ago

I had the same problem and it worked for me to do "pip uninstall sentence-transformers" and then reinstall the library with "pip install sentence-transformers==2.2.2".

I also had the original problem and this solved it. Now i have the issue that only CPU is being used and not GPU - but that's a different issue

JTMarsh556 commented 3 months ago

"pip install sentence-transformers==2.2.2".

This worked for me as well.