Watch the explanation. Practice the skill.
Vector databases and embeddings
Keep document and query embeddings compatible.
Captions appear here during playback.
Vector databases and embeddings
Keep document and query embeddings compatible.
Video playback is unavailable. Read the descriptive transcript below, go directly to practice, or open the video file.
Source-based teaching example · Fictional data · Reviewed 2026-10-03. Microsoft Mark · locally synthesized. On a small screen, use fullscreen for diagram details or read the transcript.
Read the descriptive transcript
0:00 · What you will learn
Keep document and query embeddings compatible.
What appears on screen
Keep document and query embeddings compatible.
0:05 · The idea
Search vectors must come from compatible settings and model versions. Matching vector length alone is not enough. When changing the embedding setup, migrate documents and queries together.
What appears on screen
Search vectors must come from compatible settings and model versions. Matching vector length alone is not enough. When changing the embedding setup, migrate documents and queries together.
0:20 · One useful term
Embedding. A list of numbers that represents an input for tasks such as similarity search.
What appears on screen
A list of numbers that represents an input for tasks such as similarity search.
0:29 · A worked example
The lesson uses two invented two-number vector spaces. Matching pairs score one. Mixing a new query with an old document scores zero, even though both have the same length.
What appears on screen
The lesson uses two invented two-number vector spaces. Matching pairs score one. Mixing a new query with an old document scores zero, even though both have the same length.
0:44 · Your turn to think
Does the same number of dimensions prove two embeddings are compatible? Pause and decide before continuing.
What appears on screen
Does the same number of dimensions prove two embeddings are compatible? Pause the video if you need more time.
1:01 · Why this answer works
No. Check the model revision and input preparation. These toy numbers explain compatibility, not real model quality.
What appears on screen
No. Check the model revision and input preparation. These toy numbers explain compatibility, not real model quality.
1:13 · Check 1
Record the embedding configuration.
What appears on screen
Record the embedding configuration.
1:18 · Check 2
Reject incompatible queries before search.
What appears on screen
Reject incompatible queries before search.
1:24 · Check 3
Check that deletion reaches indexes and caches.
What appears on screen
Check that deletion reaches indexes and caches.
1:30 · Now try a different case
Open the lesson and try its different practice case. Use every check in the full task. Watching alone does not mark the lesson complete.
What appears on screen
Open the lesson Try the new case Check and revise The full task and its requirements are in the linked lesson.
Watching explains the example. Complete the lesson practice to check what you can do. Explore all visual lessons →