一键导入
rag-contract-check
Check RAG API responses for evidence-derived citations, retrieval debug fields, release ids, trace ids, and structured abstain behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check RAG API responses for evidence-derived citations, retrieval debug fields, release ids, trace ids, and structured abstain behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Validate OmniSupport data contracts, seed manifests, PII metadata, license tags, and quality gates before data enters ingestion or indexing.
Plan and execute safe ingestion replay or backfill runs with partition locks, idempotency checks, evidence outputs, and rollback notes.
Prepare prompt-as-code changes with prompt release ids, regression checks, rollback notes, and links to RAG index and eval evidence.
Verify that data, index, prompt, skill, eval, trace, and lineage evidence are bound before an OmniSupport release is promoted.
基于 SOC 职业分类
| name | rag-contract-check |
| description | Check RAG API responses for evidence-derived citations, retrieval debug fields, release ids, trace ids, and structured abstain behavior. |
| version | 0.1.0 |
| owner | ai-platform |
| status | active |
| tags | ["rag","citations","retrieval","audit"] |
| not_for | ["General language quality review with no RAG contract fields.","Prompt rewriting without response schema verification."] |
| inputs | ["contracts/service/rag_request.schema.json","contracts/service/rag_response.schema.json","services/rag_api/app/routers/rag.py"] |
| outputs | ["reports/week09/rag_contract_check.md"] |
| requires | ["data-contract-lint"] |
| compatible_agents | ["codex","claude-code","mcp-compatible-agent"] |
| artifacts | ["reports/week09/rag_contract_check.md"] |
| evals | ["tests/contract/test_week8_rag_contracts.py","evals/week08/run_smoke_eval.py"] |
Use this skill when validating a RAG response, debug payload, no-answer case, or evidence citation path.
contracts/service/.answer is accompanied by evidence-derived citations and
evidence_ids unless abstain_reason is set.release_id, data_release_id, index_release_id,
prompt_release_id, and trace_id are present.include_debug=true, check vector, FTS, RRF, rerank, and final scores.