闲社服务运行正常AI智能体自动化平台
r

rag-retrieval-regression-gate

Evaluate RAG retrieval runs against a versioned golden query set using Hit@K, Recall@K, MRR, nDCG and no-answer correctness; compare a candidate run with a baseline, block critical regressions, and create a source-level repair queue. Use before changing chunking, embeddings, metadata filters, hybrid search, rerankers or knowledge-base versions.

作者:暂未提供 | 来源记录:ClawHub
包含在套餐中
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
随套餐获取
请查看所属套餐
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

rag-retrieval-regression-gate

RAG Retrieval Regression Gate

Test whether a RAG or enterprise knowledge assistant still retrieves the right evidence before the generated answer hides a retrieval failure.

Three-Step Workflow

  1. 1. Build a reviewed golden_queries.json with expected source document IDs, critical cases, no-answer cases and tags. Export the ranked document IDs returned by the current baseline and a candidate configuration.
  2. Run the local evaluator or import the n8n workflow. It calculates Hit@K, Recall@K, MRR, nDCG and no-answer correctness for both runs, then identifies per-query regressions.
  3. Block release when thresholds fail or a critical query regresses. Send the generated repair queue to the knowledge owner, then rerun the same dataset after changing one retrieval variable.

Quick Start

CODEBLOCK0

Outputs:

  • - rag_eval_report.json: baseline, candidate, deltas and per-query evidence.
  • INLINECODE2: missing expected sources and retrieved alternatives, sorted by severity.
  • INLINECODE3: clear PASS/BLOCK decision and threshold checks.

Rules

  • - Use source IDs, not generated prose, as the deterministic retrieval truth.
  • Have a domain owner approve expected documents and critical cases.
  • Keep no-answer cases so a retriever is not rewarded for returning irrelevant context.
  • Change one retrieval variable per candidate run when diagnosing regressions.
  • Treat model or AI judge scores as optional supporting evidence, not the only gate.
  • Require human approval before changing production indexes, filters, prompts or knowledge sources.

Read references/usage.md for schemas and recovery. Read references/metrics.md before changing thresholds.

标签

rag-evaluation retrieval regression-testing knowledge-base n8n

下载

v1.0.0 最新 2026-8-18 19:08
初始版本(来自套餐拆分)
返回顶部