ray-project/langchain-ray

Unable to use the LocalHuggingFaceEmbeddings("multi-qa-mpnet-base-dot-v1")

msinha251 opened this issue · 3 comments

Getting below error while loading the localhgembeddings:

error:
huggingface_hub.utils._errors.HfHubHTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/models/sentence-transformers/multi-qa-mpnet-base-dot-v1

Looks like the embeddings are not more available. Do we have any alternatives ?

Hi @msinha251 it is a time-out error on the HF side. Did you try it few times?

Same error. I am unable to follow run this script. Unable to find the package installation for LocalHuggingFaceEmbeddings.

python3 build_vector_store_fast.py 
Traceback (most recent call last):
  File "/opt/tiger/build_vector_store_fast.py", line 11, in <module>
    from embeddings import LocalHuggingFaceEmbeddings
ImportError: cannot import name 'LocalHuggingFaceEmbeddings' from 'embeddings' (/usr/local/lib/python3.10/site-packages/embeddings/__init__.py)

@varungup90 you need to include that embeddings.py, for LocalHuggingFaceEmbeddings is defined in that file.