Weaviate Error: Vector Lengths Don't Match
Quick answer
This error means the query or inserted vector has a different dimension count than the vectors already in the index (e.g. 512 vs 1536). Match the embedding model and dimension setting, or re-create the collection.
Most likely fix: Use the same model and dimensions everywhere
How to fix it
Try these in order — the most common fix is first.
1. Use the same model and dimensions everywhere
- Check the dimensions the collection's vectorizer is configured with
- Make sure query-time vectors use the identical model and dimension count
- Fix the vectorizer config to match what was indexed
Did this fix it?2. Re-create the collection
- Create a new collection with the correct vectorizer settings
- Re-import your data so all vectors share one dimension
- Switch your application to the new collection
Did this fix it?
Symptoms
Errors like 'vector lengths don't match: 512 vs 1536' or 1024 vs 3072 on insert or hybrid queries.
Why it happens
- Embedding model or dimensions setting was changed after data was indexed (e.g. OpenAI text-embedding-3 with custom dimensions)
- Collection config for dimensions not applied after a restart (reported on WCS, no confirmed patch in the thread)
- Mixing vectors from different models in one collection
This guide also covers
- weaviate vector lengths don't match
- weaviate vector dimension mismatch
- weaviate hybrid query vector error
Still not working?
If Weaviate keeps failing, you're not alone. See every Weaviate problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usThe same problem in other apps
Other Weaviate errors
- Weaviate Out of Memory (OOM Killed)
- Weaviate gRPC Deadline Exceeded Error
- Weaviate Batch Import Errors and Failed Objects
- Weaviate 'Memory Pressure: Cannot Init Shard' Error
- Weaviate RAFT Heartbeat Timeout and Leader Elections
- Weaviate Stuck on 'Schema Catching Up' at Startup
- How to Cancel Weaviate Cloud and Avoid Charges