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

Chromadb error #18098

Closed
varayush007 opened this issue Feb 25, 2024 · 4 comments
Closed

Chromadb error #18098

varayush007 opened this issue Feb 25, 2024 · 4 comments
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature 🔌: chroma Primarily related to ChromaDB integrations Ɑ: embeddings Related to text embedding models module

Comments

@varayush007
Copy link

varayush007 commented Feb 25, 2024

          I am getting this error while using 

embeddings = HuggingFaceEmbeddings(model_name='sentence-transformers/all-MiniLM-L6-v2')
to_vectorize = [" ".join(example.values()) for example in few_shots]

vectorstore = Chroma.from_texts(
to_vectorize,
embedding=embeddings,
metadatas=few_shots
)

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

Im using chromadb==0.4.15

Originally posted by @varayush007 in #13051 (comment)

@dosubot dosubot bot added Ɑ: embeddings Related to text embedding models module 🔌: chroma Primarily related to ChromaDB integrations 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature labels Feb 25, 2024
@ABIRAMI1997
Copy link

@varayush007 how did you fixed it?

@varayush007
Copy link
Author

varayush007 commented May 26, 2024

@ABIRAMI1997
langchain==0.0.284
python-dotenv==1.0.0
streamlit==1.22.0
tiktoken==0.4.0
faiss-cpu==1.7.4
protobuf~=3.19.0
langchain_experimental
mysql-connector-python
pymysql
sentence-transformers==2.2.2
chromadb
transformers==4.31.0

I used these requirements and it works for me.

@ABIRAMI1997
Copy link

Got it .. Thank you :)

@deamonvector
Copy link

im still facing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature 🔌: chroma Primarily related to ChromaDB integrations Ɑ: embeddings Related to text embedding models module
Projects
None yet
Development

No branches or pull requests

3 participants