Leon-Sander / Local-Multimodal-AI-Chat

GNU General Public License v3.0
136 stars 83 forks source link

... #25

Closed mehyarhrg closed 5 months ago

mehyarhrg commented 6 months ago

TypeError: INSTRUCTOR._load_sbert_model() got an unexpected keyword argument 'token' Traceback: File "C:\Users\mihya\Desktop\local_multimodal_ai_chat-main\chat_venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 535, in _run_script exec(code, module.dict) File "C:\Users\mihya\Desktop\local_multimodal_ai_chat-main\app.py", line 133, in main() File "C:\Users\mihya\Desktop\local_multimodal_ai_chat-main\app.py", line 76, in main add_documents_to_db(uploaded_pdf) File "C:\Users\mihya\Desktop\local_multimodal_ai_chat-main\pdf_handler.py", line 29, in add_documents_to_db vector_db = load_vectordb(create_embeddings()) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\mihya\Desktop\local_multimodal_ai_chat-main\llm_chains.py", line 25, in create_embeddings return HuggingFaceInstructEmbeddings(model_name=embeddings_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\mihya\Desktop\local_multimodal_ai_chat-main\chat_venv\Lib\site-packages\langchain_community\embeddings\huggingface.py", line 153, in init self.client = INSTRUCTOR( ^^^^^^^^^^^ File "C:\Users\mihya\Desktop\local_multimodal_ai_chat-main\chat_venv\Lib\site-packages\sentence_transformers\SentenceTransformer.py", line 197, in init modules = self._load_sbert_model( ^^^^^^^^^^^^^^^^^^^^^^^