Debugging vector inserting error with BedrockEmbedding
Debugging vector inserting error with BedrockEmbedding
At a glance
The community member is trying to debug an error related to a vector store, where the expected dimension is 1536 but the actual dimension is 1024. They are using a BedrockEmbedding model with a dimension of 1024, and have set the embed_model in both Settings and the VectorStoreIndex.from_vector_store() method to this model, but it is still expecting the OpenAI embedding model.
The comments suggest that the community member's vector store may have been created with a different embedding model, and that the current embed_model does not match the one used to create the index. They are advised to try creating a fresh database to see if that resolves the issue. The community members also discuss the possibility of a default embedding dimension being set somewhere, but conclude that Qdrant does not have a dimension parameter.
I am using an embedding model with a dimension of 1024 via BedrockEmbedding, and have set the embed_model in both Settings and the VectorStoreIndex.from_vector_store() method to be this embedding model, yet for some reason it is still expecting the OpenAI embedding model. Am I missing something or any advice on how to debug?
It seems like st.session_state.embed_model does not match the embed model that was used to create this index π
The full traceback would probably show some error in the qdrant vector store, because you are querying with a different embedding model than was used to create the index
is there an embedding dimension parameter set somewhere to a default value of 1536 that is not being overriden in my case because I forgot to set something?
So strange because I really do only have access to cohere's v3 model which has a dimension of 1024. I know the defaults in llamaindex are usually OpenAI so I just assumed it was dropping to the default somewhere and assuming a dimension of 1536 from one of OpenAI's embedding models. Will go ahead and re-embed everything and see what happens.