ray-project / langchain-ray

Examples on how to use LangChain and Ray
Apache License 2.0
217 stars 47 forks source link

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

Open msinha251 opened 1 year ago

msinha251 commented 1 year ago

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 ?

kamil-kaczmarek commented 1 year ago

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

varungup90 commented 1 year ago

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)
allanwakes commented 1 year ago

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