语言人工智能指南

检索质量

检索质量衡量搜索系统是否返回查询的有用证据并将其放置在读者或下游模型可以使用的地方。

阅读时间:2分钟最后更新 使用 AI 系统构建学习路径的一部分

概述

Relevance, coverage, freshness, and authorization all matter. A high similarity score alone does not prove that a passage answers the question.

主要要点

  • Define relevance for the question being answered.
  • Report cutoffs and labeling rules.
  • Test freshness, permissions, and missing evidence.

深入探讨

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.

技术洞察

Similarity and relevance are different concepts. The vector nearest to a query can still be a poor answer because the embedding captures topic rather than the required fact.

Compute retrieval precision and recall

  1. In a constructed collection, four passages answer a question. A search returns five passages, of which three are relevant.
  2. Precision at five is 3/5 = 60%; recall at five is 3/4 = 75%.
  3. Inspect the missing relevant passage and the two irrelevant results before choosing a tuning change.

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.

风险与防护栏

幻觉的事实可以悄悄地进入报告、支持流程或研究成果。

及时的敏感性可能会在类似的请求中产生不一致的结果。

如果访问控制薄弱,敏感文本数据可能会暴露。

实施路线图

1

在推出之前定义输出格式、语气和质量标准。

2

当准确性很重要时,请使用可信来源进行地面响应。

3

为高风险输出保留人工审查检查点。

4

跟踪故障模式并定期重新训练提示或工作流程。

资料来源与延伸阅读

不断探索

Free newsletter

Get the daily AI briefing

Three verified AI stories every weekday morning, written in plain English. Free forever, no ads.

One email each weekday. Unsubscribe in one click. We never sell or share your address.

Test yourself

Take the Retrieval Quality quiz

Instant feedback on every answer, and a shareable certificate with a verifiable ID once you pass a course.

开始测验

Support free AI education. AI Understanding is a 501(c)(3) nonprofit — no ads, no paywall, ever. Make a donation

Next in Building with AI Systems

矢量数据库

常见问题

Should I always retrieve more passages?

No. More passages may improve coverage but also add irrelevant or conflicting context. Measure the tradeoff in the complete application.