How do you keep embeddings consistent during a full re-embed at scale?
PICTURE THIS: DATABASE INDEX
Simple meaning
Version the embedding model in metadata, dual-write or blue-green a new index, then atomically switch the query path.
WHY — Tokens instead of words?
LLMs use tokens (not full words) because it helps them:
question about Vector DB.
trade-offs, and what you would actually do on a GenAI / LLM project - not buzzwords.
Each piece maps to a number the network can learn.
Fixed pieces are what transformers expect as input.
STEPS — What happens with tokens?
Before the model can read a sentence, it goes through these steps:
- 1Version the embedding model
in metadata, dual-write or blue-green a new index, then atomically switch the query path.
- 2Mixing two model versions
in one ANN index corrupts nearest neighbors.
- 3CDC from the source
of truth should drive the job, not ad-hoc scripts.
- 4Context mix
Attention looks at nearby tokens together.
- 5Next token
The model scores what should come next.
- 6Decode
IDs turn back into readable text.
EXAMPLE — See it in action
Here's a short line you can speak, broken into clear beats:
Note: Adapt this scaffold to your own project — keep it under 60–90 seconds.
Key takeaway
Version the embedding model in metadata, dual-write or blue-green a new index, then atomically switch the query path. Mixing two model versions in one ANN index corrupts nearest neighbors.