AI Video Academy · RAG Engineering · intermediate

How Does Vector Search Work?

Embeddings, cosine similarity, and nearest neighbours.

0:47 · captions in English · instrumental music, no narration

Transcript

How does search find meaning, not just matching words?

Chunks are embedded and indexed once. Each question is embedded and compared with them.

The question’s vector lands near the passages that answer it.

Scores are cosine similarities; large indexes use approximate nearest-neighbour search.

Vector search matches meaning but can miss exact names and codes.

Experiment with this concept in PromptFlowEngine.