ovh / public-cloud-examples

Apache License 2.0
22 stars 14 forks source link

Unresolved reference 'OVHCloudEmbeddings' #78

Closed utuncel closed 1 month ago

utuncel commented 2 months ago

When running the RAGStreamingChatbot from the python-langchain-chatbot project, for me, it can`t find the OVHCloudEmbeddings reference.

error

I installed all the requirements from the requirements.txt. I think the error is caused by a missing requirement in the requirements.txt.

philippart-s commented 2 months ago

Strange because the dependency is in the official langchain_community dependency : https://github.com/langchain-ai/langchain/blob/langchain-core%3D%3D0.2.37/libs/community/langchain_community/embeddings/ovhcloud.py

And this dependency is downloaded by the langchain_community dependency in the requirements.txt

Could you try to see in your venv if the dependency is downloaded as for myself?

cd venv/lib/python3.12/site-packages/langchain_community/embeddings
 ll ovh*
-rw-r--r--  1 sphilipp  staff   3.4K Jul 19 10:56 ovhcloud.py

On my side I'll test by cleaning all my venv to test if I can reproduce the problem 😉

utuncel commented 1 month ago

Oh, sorry, I made a mistake with my IDE. Everything is fine now!