Replies: 1 comment 1 reply
-
To resolve the dimension mismatch error and use multiple embedding models with a single ChromaDB collection, you need to ensure that the embeddings from different models have the same dimensionality. Here is a step-by-step approach to achieve this:
By ensuring that all embeddings have the same dimensionality before adding them to the ChromaDB collection, you can avoid dimension mismatch errors and successfully use multiple embedding models with a single collection. Additionally, the ChromaDB library provides various methods to handle embeddings, metadata, and persistence, ensuring smooth integration and operation [1][2][3][4]. |
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
I am using "dunzhang/stella_en_1.5B_v5" embedding model and also will be using many custom embedding model. So I do not want to add pre defined embedding to my chroma collection and at the similarity search time, I want to embedd and find similarity.
Error :
InvalidDimensionException: Embedding dimension 1024 does not match collection dimensionality 384
Please Provide me solution how I can use multiple embedding models through on chroma db collection.
System Info
langchain==0.2.11
langchain-chroma==0.1.2
langchain-community==0.2.10
langchain-core==0.2.24
langchain-text-splitters==0.2.2
Beta Was this translation helpful? Give feedback.
All reactions