-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Failed to create any VectorStore - Error building Component Astra DB / Chroma DB #3795
Comments
Hey @oschan77! I'm here to help you with any bugs, questions, or contributions you have. Let's work together to solve this issue. The connection errors you're encountering with both Astra DB and Chroma DB in Langflow on Ubuntu 22.04 with Python 3.10 could be due to several reasons. Here are some potential issues and their solutions: Astra DB
Chroma DBFor Chroma DB, ensure the following configuration parameters are correctly set:
Environment VariablesFor Astra DB, ensure the following environment variables are set:
For Chroma DB, there are no specific environment variables mentioned, but you can manage and configure environment variables in Langflow by setting Debugging InformationLangflow provides specific logging and debugging information when connection errors occur. For example, it logs the number of documents being added to the vector store and raises a Ensure all the required fields are correctly set, the necessary packages are installed, and network connectivity and credentials are valid. If the issue persists, check the logs for specific error messages to help diagnose the problem. |
Thank you for your message. We were experiencing some issues with PyTorch dependencies when working with Hugging Face local embeddings. To resolve this, we have implemented support using Hugging Face’s text embeddings inference. This approach is straightforward to integrate into production environments. For optimal performance, please refer to this guide on running Hugging Face Embeddings locally on CPU. This update reflects an enhancement in how we interact with Hugging Face embeddings, offering a more efficient and streamlined approach compared to prior implementations. Additionally, we addressed a similar issue in PR #3758 and Issue #3595 |
Hi @oschan77 , In addition to the Hugging Face support I mentioned earlier, I would also recommend exploring the AstraVectorize component, which supports NVIDIA embeddings as well as several other providers. You can find more details here: The AstraVectorize component provides a flexible and scalable solution for embedding generation, leveraging the power of NVIDIA embeddings and other integrations. This can be a great alternative for your Langflow deployments, especially if you are looking for enhanced performance and support for various embedding providers. Feel free to explore these resources and see if they fit your needs. If you have any more questions or need further assistance, just let me know! |
Thank you for your responses. I'd like to confirm whether my Langflow design is functional and can be used in the future. It seems the main issue stems from the current lack of support for Huggingface Embeddings in Langflow. For my specific use case, Huggingface models and embeddings aren't essential. Given this context, is there a straightforward method to implement RAG using Langflow? Please note that I don't have access to OpenAI API keys. As an alternative, I'm considering using Ollama models and embeddings. Are these well-supported in the current version of Langflow? I appreciate your guidance on these matters. |
Hi @oschan77 |
Hi @edwinjosechittilappilly |
Both are feasible. |
Currently Closing this issue. Feel free to reopen if you face any further issues. |
Hi @edwinjosechittilappilly |
Facing same issue |
@umais2005 and @kavinkumarbaskar1, if you are using local models, please ensure that you are using the updated component of the Huggingface embeddings and that the Huggingface Text embeddings Inference https://huggingface.co/docs/text-embeddings-inference/en/local_cpu is running locally. You can also replace the local host URL with the serverless API from Huggingface and use it with the HF token. If you encounter any further issues, please reopen this issue. |
Hey i fixed this issue for chroma db. You actually have to run chromadb on localhost with port 8080. Here are the commands to run in terminal |
Hey, I fixed this issue for chromaDB. You actually have to run chromadb on localhost with port 8080. Here are the commands to run in terminal pip install chromadb chroma run --host localhost --port 8080 --path ./my_chroma_data @umais2005 Yeah, it is working with chromadb, but AstraDB is not working. Anyway, thanks for the reply it really helped |
Bug Description
I am trying to create a VectorStore for RAG, but I cannot create any vectorstore. I have tried both Astra DB and Chroma DB and none of them works for me.
I am currently installing Langflow in my machine and using a conda environment. I have ensured the terminal to have sudo permission before I ran
python -m pip install langflow -U
to install Langflow.Reproduction
I am using the GUI, so I will provide screenshots instead of code snippets.
Astra DB:
This is the error message for Astra DB:
Chroma DB:
This is the error message for Chroma DB
Expected behavior
I would expect the vectorstores to be successfully created for both Astra DB and Chroma DB.
Who can help?
No response
Operating System
Ubuntu 22.04
Langflow Version
1.0.18
Python Version
3.10
Screenshot
No response
Flow File
No response
The text was updated successfully, but these errors were encountered: