Similarity search measures the distance between the question vector and every chunk vector in the index, then ranks the chunks by closeness. Because closeness in this space stands for similarity in meaning, the nearest chunks are the ones whose content is most related to the question. The result is an ordered list of candidate chunks rather than a single answer.
How AI Answers Questions About Documents It Never Learned
Retrieval: Finding the Right Passages for a Question
Measuring Closeness
2 / 4
With the question sitting in the same space, the system can finally ask a simple question of its own: which chunks are closest to this point?
0:00 / 0:00