-
Notifications
You must be signed in to change notification settings - Fork 16.2k
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
langchain & chroma - Basic Example #13191
Comments
🤖 Hello @4entertainment, It's nice to see you again! I appreciate you reaching out with your issue. I'm currently looking into it and will provide a detailed response shortly. |
🤖 Based on the error message you're receiving, it seems like the issue is related to the recent changes in the EmbeddingFunction interface in Chroma version 0.4.16. The LangChain repository has similar solved issues that suggest updating LangChain to the latest version (0.0.332) which is compatible with Chroma version 0.4.16. You can do this by running the command However, since the latest version of LangChain is v0.0.333, I recommend updating to this version instead. You can do this by running the command If the issue persists, it might be related to the local embeddings setup. It is suggested to check if the custom OpenAI embeddings endpoint works with the new SDK alone. If the issue is specific to GPT4AllEmbeddings, it is suggested to submit a new issue specific to GPT4AllEmbeddings. Regarding the correct signature for the I hope this helps! If you have any more questions or if the issue persists, please let me know. Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Hi, @4entertainment, I'm helping the LangChain team manage their backlog and am marking this issue as stale. From what I understand, you encountered a ValueError related to the expected signature of the EmbeddingFunction and a recent change to the EmbeddingFunction interface. Dosubot provided a detailed response, suggesting updating LangChain to the latest version (0.0.333) and provided commands for updating. Additionally, potential issues related to local embeddings setup and the correct signature for the Could you please confirm if this issue is still relevant to the latest version of the LangChain repository? If it is, please let the LangChain team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you! |
Issue you'd like to raise.
No response
Suggestion:
i use this code but i get the following error:
ValueError: Expected EmbeddingFunction.call to have the following signature: odict_keys(['self', 'input']), got odict_keys(['self', 'args', 'kwargs'])
Please see https://docs.trychroma.com/embeddings for details of the EmbeddingFunction interface.
Please note the recent change to the EmbeddingFunction interface: https://docs.trychroma.com/migration#migration-to-0416---november-7-2023
can you give me fixed code and explain?
The text was updated successfully, but these errors were encountered: