InvalidDimensionException: Embedding dimension 1024 does not match collection dimensionality 1536

  Kiến thức lập trình

I am facing this issue when I was ingesting the text & image embeddings in the same collection of chroma DB.
tried this code snippet but got the same exception

vectorstore = Chroma( collection_name=collection_name, embedding_function=OpenCLIPEmbeddings(), client=chroma_client)

Then I tried again with dimension parameter in openclipembedding() function
As

vectorstore = Chroma( collection_name=collection_name, embedding_function=OpenCLIPEmbeddings(dimension=1536), client=chroma_client)
`

New contributor

Akash Shukla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT