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

huggingface embeddings test fails #412

Open
eliben opened this issue Dec 16, 2023 · 1 comment
Open

huggingface embeddings test fails #412

eliben opened this issue Dec 16, 2023 · 1 comment

Comments

@eliben
Copy link
Collaborator

eliben commented Dec 16, 2023

Trying to see if I can refactor the embeddings for huggingface for #379, but the test currently fails when I set an API token:

Running from the embeddings/huggingface directory:

$ HUGGINGFACEHUB_API_TOKEN=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 go test -v .
=== RUN   TestHuggingfaceEmbeddings
=== PAUSE TestHuggingfaceEmbeddings
=== CONT  TestHuggingfaceEmbeddings
    huggingface_test.go:22: 
        	Error Trace:	langchaingo/embeddings/huggingface/huggingface_test.go:22
        	Error:      	Received unexpected error:
        	            	API returned unexpected status code: 503: unable to create embeddings
        	Test:       	TestHuggingfaceEmbeddings
--- FAIL: TestHuggingfaceEmbeddings (0.32s)
FAIL
FAIL	github.com/tmc/langchaingo/embeddings/huggingface	0.321s
FAIL

@zivkovicn and @tmc any ideas?

@zivkovicn
Copy link
Contributor

@eliben didn't check the code I'm afk atm, but sometimes we get 503 from the huggingface hub b/c there are no available instances for free accounts. https://huggingface.co/docs/api-inference/faq#rate-limits not sure if it is related, but there is a possiblity.

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

2 participants