ask-multiple-pdfs icon indicating copy to clipboard operation
ask-multiple-pdfs copied to clipboard

ValueError: Dependencies for InstructorEmbedding not found.

Open Rockyou1 opened this issue 1 year ago • 5 comments

I got this strange issue when I tried to use the Constructor version of the app, even though I had it installed a few different ways on the system it took 8 hours as I trying to find the cause but there is nothing about such a problem anywhere

Rockyou1 avatar Oct 07 '23 02:10 Rockyou1

I get this error too, when I use HuggingFace: embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl") llm = HuggingFaceHub(repo_id="google/flan-t5-xxl", model_kwargs={"temperature":0.5, "max_length":512})

But everything is fine when using OpenAI: embeddings = OpenAIEmbeddings() llm = ChatOpenAI()

costabm avatar Oct 26 '23 09:10 costabm

Solution for me:

pip install InstructorEmbedding sentence_transformers huggingface-hub

(explained here https://youtu.be/dXxQ0LR-3Hg?si=hhCtkHBvJsu6VO1V&t=2258) (you can also just go to the requirements.txt and uncomment the respective packages)

costabm avatar Oct 26 '23 13:10 costabm

I had same issue. pip install sentence_transformers fixed it as described by costabm.

E2-Sean avatar Nov 20 '23 21:11 E2-Sean

same issue, same solution - thank you @E2-Sean , @Rockyou1, @costabm !

For the moment an other issue: when the docu is up-loaded and the process-button is clicked then it processes and processes and does not want come to an end (online connected) - what might I check ? (I have a GPU but I am not shure wether it is used with this code)

alpynepyano avatar Nov 25 '23 18:11 alpynepyano

I had a similar issue described above - Dependencies for InstructorEmbedding not found The problem was with torch module. The installation of sentence_transformers did not complete - saying killed Solution was to pip install torch --no-cache-dir and then reinstalling senttence_transformers

StrauchiigaisG avatar Feb 13 '24 06:02 StrauchiigaisG