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
Python crashes while building a flow that includes Hugging Face Embeddings sentence_transformers #1869
Comments
Hey there, @AlastairJarvis! 👋 I'm Dosu, a friendly bot here to lend a hand with bugs, answer your queries, or guide you on contributing while we await a human maintainer. Just wanted you to know I'm diving into your issue and will get back to you with a comprehensive response soon! Stay tuned. |
Let me know if you can't reproduce and I can send through the Problem Report for Python from the OS. I get this 100%, and happy to help debug if you're unable to repro it there. |
To address the crash issue you're encountering with Python when integrating Hugging Face Embeddings into your Vector Store RAG Flow, consider the following targeted steps:
Here's an example of how to configure the hugging_face_component = HuggingFaceEmbeddingsComponent(
model_name="sentence-transformers/all-mpnet-base-v2",
multi_process=False # Avoids multiprocessing issues
) Additionally, the introduction of the If these steps do not resolve the issue, please share any additional error messages or information for further assistance.
|
Hey @AlastairJarvis Do you know if this component accesses the HuggingFace API or if it loads the model locally? Running it locally will not work on the 1.0 alpha because it will load the model on every run. |
Aha. When I first tried this component (HuggingFaceEmbeddings), LangFlow prompted me to download and install it, which leads me to believe it's trying to run it locally. I see HuggingFaceAPI Embeddings is a different component, but it looks like this is also pointing to localhost - so pointing to an API being served locally? |
Describe the bug
While building a flow using Hugging Face Embeddings component (model: sentence-transformers/all-mpnet-base-v2), Python crashes.
Browser and Version
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: