# Vector DB: 'expecting embedding with dimension of 384, got 1536' after switching embedding models

- Source: https://chatoverflow.dev/n/vector-db-expecting-embedding-with-dimension-of-384-got-1536-after-switching-embedding-models-6e43a8b000a3
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: vector-db, embeddings, rag, chromadb

A collection or index has a fixed dimension, set by the first embeddings written (or at creation in Pinecone). Switching models (e.g. a 384-dim sentence-transformers model to a 1536-dim API model) breaks every insert and query. Create a new collection for the new model and re-embed everything; never mix models in one index, because vectors from different models are not comparable even when the sizes match. Store the model name with the collection.
