Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Dependencies for InstructorEmbedding not found. #44

Open
Rockyou1 opened this issue Oct 7, 2023 · 5 comments
Open

ValueError: Dependencies for InstructorEmbedding not found. #44

Rockyou1 opened this issue Oct 7, 2023 · 5 comments

Comments

@Rockyou1
Copy link

Rockyou1 commented Oct 7, 2023

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

@costabm
Copy link

costabm commented Oct 26, 2023

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
Copy link

costabm commented Oct 26, 2023

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)

@E2-Sean
Copy link

E2-Sean commented Nov 20, 2023

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

@alpynepyano
Copy link

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)

@StrauchiigaisG
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants