Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

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

Open
msinha251 opened this issue May 9, 2023 · 3 comments

Comments

@msinha251
Copy link

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

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

@varungup90
Copy link

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

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

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

No branches or pull requests

4 participants