Trying to create chroma embedding from langchain to later use it with googlepalm, my code is: vectorstore = Chroma.from_texts(to_vectorize, embedding=embeddings, metadatas=few_shots ), few_shots is a list of strings. My error is: ValueError: Expected EmbeddingFunction.__call__ to have the following signature: odict_keys(['self', 'input']), got odict_keys(['self', 'args', 'kwargs']). Frankly speaking i am new to LLM and I didn't understand what's happening with migration e.t.c. I would highly appreciate your help. #24041
Replies: 1 comment
-
Hello, @sultanbeishenkulov! I'm here to help you with your technical issues and questions while you wait for a human maintainer. Let's squash those bugs together! 🤖 To resolve the Here's how you can define the class CorrectEmbeddingFunction:
def __call__(self, input):
# Your embedding logic here
pass In your case, since you are using Additionally, you can update your LangChain and Chroma packages to the latest versions to avoid any compatibility issues: pip install -U langchain chromadb This should resolve the issue with the |
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
Trying to create chroma embedding from langchain to later use it with googlepalm, my code is: vectorstore = Chroma.from_texts(to_vectorize, embedding=embeddings, metadatas=few_shots ), few_shots is a list of strings. My error is: ValueError: Expected EmbeddingFunction.call to have the following signature: odict_keys(['self', 'input']), got odict_keys(['self', 'args', 'kwargs']). Frankly speaking i am new to LLM and I didn't understand what's happening with migration e.t.c. I would highly appreciate your help.
System Info
Package Information
Beta Was this translation helpful? Give feedback.
All reactions