À suivreSuivant dans Construire avec des systèmes d’IA
Bases de données vectorielles
Technique
GUIDE IA du langage
Retrieval quality measures whether a search system returns useful evidence for a query and places it where a reader or downstream model can use it.
Écoutez ce guideNarré par l'IA · ~2 min
Relevance, coverage, freshness, and authorization all matter. A high similarity score alone does not prove that a passage answers the question.
Define relevance with the intended task in mind. A document about a product may be topically related but fail to answer a specific question about a version or date. Label examples of fully supporting evidence, partial evidence, and irrelevant material. Measure the candidate set and ranking separately. Recall at a chosen cutoff asks how much relevant material was retrieved; precision asks how much of the retrieved material is relevant. Rank-aware metrics assess whether the best evidence appears early. State the cutoff and labeling method with every score. Inspect failure patterns: exact identifiers missed by semantic search, synonyms missed by keyword search, outdated documents ranked above current ones, or passages cut away from their qualifications. Hybrid retrieval and reranking can help some cases, but must be evaluated on the same fixed examples. Include access restrictions and unanswerable queries in the test set. A system should not improve apparent relevance by returning unauthorized documents. When no adequate evidence exists, measure whether the application communicates that limitation instead of producing an unsupported answer.
04Exemple travaillé
In a constructed collection, four passages answer a question. A search returns five passages, of which three are relevant.
Precision at five is 3/5 = 60%; recall at five is 3/4 = 75%.
Inspect the missing relevant passage and the two irrelevant results before choosing a tuning change.
Ce que ça montre
These invented counts show two different retrieval properties; neither alone measures final answer correctness.
Test retrieval of an exact order code and a paraphrased support question.
Check whether current policy versions outrank archived ones.
Newsletter gratuite
Trois histoires d'IA vérifiées chaque matin de la semaine, écrites dans un anglais simple. Gratuit pour toujours, sans publicité.
Un e-mail chaque jour de la semaine. Désabonnez-vous en un clic. Nous ne vendons ni ne partageons jamais votre adresse.
Testez-vous
Commentaires instantanés sur chaque réponse et un certificat partageable avec une pièce d'identité vérifiable une fois que vous avez réussi un cours.
Soutenez l’enseignement gratuit de l’IA. AI Understanding est une organisation à but non lucratif 501(c)(3) : pas de publicité, pas de paywall, jamais. Faire un don
No. More passages may improve coverage but also add irrelevant or conflicting context. Measure the tradeoff in the complete application.
Continuez à apprendre
Plus de guides sélectionnés pour ce sujet
À suivreSuivant dans Construire avec des systèmes d’IA
Bases de données vectorielles
Technique