[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75W3EM3P36A2S1RQ3XPWAY3":3,"skill-same:01M75W3EM3P36A2S1RQ3XPWAY3":46},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M75W3EM3P36A2S1RQ3XPWAY3","rag-evaluation",null,"ItWasYou-SAM\u002FSkill-is-All-you-Need","ItWasYou-SAM","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255364315?v=4","01M75VMN2DKTF5V9QPG2D5PBY0","Sam","01M75VMN31FCZMM9RZ4W8ZHCR4",6,"MIT","https:\u002F\u002Fgithub.com\u002FItWasYou-SAM\u002FSkill-is-All-you-Need\u002Fblob\u002Fmaster\u002F06-code-quality\u002Frag-evaluation\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: rag-evaluation\ndescription: >\n  Use this skill when evaluating RAG quality, grounding, chunking, citation behavior, or retrieval faithfulness.\n  Do not use for non-retrieval chatbot prompts.\ntriggers:\n  - \"check RAG grounding\"\n  - \"evaluate retrieval quality\"\n  - \"RAG hallucination check\" and hallucination risk. Use this when asked to assess retrieval quality, grounding, chunking, citation behavior, or RAG answer faithfulness. Do not use for non-retrieval chatbot prompts. Do not use for diagnosing specific unsupported outputs - use hallucination-debugging instead.\n---\n\n# RAG Evaluation\n\n## Goal\nDetermine whether the answer is truly grounded in retrieved evidence.\n\n## When to use\n- Assessing RAG pipeline output quality\n- Checking if answers are grounded in sources\n- Diagnosing retrieval vs synthesis failures\n- Evaluating chunking and ranking effectiveness\n- Measuring hallucination risk in grounded systems\n\n## When not to use\n- Non-retrieval chatbot prompts\n- General prompt quality assessment\n- Model fine-tuning decisions\n- Infrastructure or deployment changes\n- Use hallucination-debugging for diagnosing specific unsupported outputs\n\n## Inputs to collect\n- User query\n- Retrieved chunks or documents\n- Final answer\n- Citation behavior\n- Retriever and reranker settings\n\n## Process\n1. Check relevance of retrieved context.\n2. Check for missing evidence.\n3. Compare answer against retrieved evidence only.\n4. Identify unsupported claims and overreach.\n5. Diagnose likely failure source.\n6. Recommend targeted fixes and eval cases.\n\n## Retrieval quality metrics\n\n| Metric | Definition | Target |\n|--------|------------|--------|\n| Precision@K | Relevant docs in top-K results | >0.7 |\n| Recall@K | Relevant docs retrieved \u002F total relevant | >0.8 |\n| MRR | Mean Reciprocal Rank of first relevant result | >0.6 |\n| NDCG | Normalized Discounted Cumulative Gain | >0.7 |\n| Hit Rate | % of queries with at least 1 relevant result | >0.9 |\n\n## Grounding failure taxonomy\n\n| Failure Type | Description | Detection |\n|--------------|-------------|-----------|\n| Hallucination | Model generates fact not in context | Compare output to retrieved docs |\n| Contradiction | Model says X, context says not-X | Semantic similarity check |\n| Irrelevance | Model answers different question | Question-answer alignment |\n| Insufficiency | Context doesn't contain answer | Check if context has required info |\n| Staleness | Context is outdated | Timestamp comparison |\n\n## Evaluation template\n\n```yaml\nquery: \"What is the refund policy?\"\ncontext:\n  - doc1: \"30-day refund policy for all products\"\n  - doc2: \"No refunds after 30 days\"\nexpected_answer: \"30-day refund policy for all products\"\nexpected_docs: [\"doc1\"]\nmetrics:\n  precision@1: 1.0\n  recall@1: 0.5\n  faithfulness: 1.0\n```\n\n## Inspection checklist\n\n- [ ] Query matches user intent (not just keywords)\n- [ ] Retrieved docs are relevant (not just containing keywords)\n- [ ] Answer is grounded in retrieved docs (not from memory)\n- [ ] Answer doesn't contradict retrieved docs\n- [ ] Answer addresses the full question (not partial)\n- [ ] Citation is accurate (doc actually says what's claimed)\n\n## Output format\n- Retrieval quality\n- Grounding quality\n- Risks\n- Likely failure source\n- Fixes\n- Eval suggestions\n","# RAG Evaluation\n\n## Goal\nDetermine whether the answer is truly grounded in retrieved evidence.\n\n## When to use\n- Assessing RAG pipeline output quality\n- Checking if answers are grounded in sources\n- Diagnosing retrieval vs synthesis failures\n- Evaluating chunking and ranking effectiveness\n- Measuring hallucination risk in grounded systems\n\n## When not to use\n- Non-retrieval chatbot prompts\n- General prompt quality assessment\n- Model fine-tuning decisions\n- Infrastructure or deployment changes\n- Use hallucination-debugging for diagnosing specific unsupported outputs\n\n## Inputs to collect\n- User query\n- Retrieved chunks or documents\n- Final answer\n- Citation behavior\n- Retriever and reranker settings\n\n## Process\n1. Check relevance of retrieved context.\n2. Check for missing evidence.\n3. Compare answer against retrieved evidence only.\n4. Identify unsupported claims and overreach.\n5. Diagnose likely failure source.\n6. Recommend targeted fixes and eval cases.\n\n## Retrieval quality metrics\n\n| Metric | Definition | Target |\n|--------|------------|--------|\n| Precision@K | Relevant docs in top-K results | >0.7 |\n| Recall@K | Relevant docs retrieved \u002F total relevant | >0.8 |\n| MRR | Mean Reciprocal Rank of first relevant result | >0.6 |\n| NDCG | Normalized Discounted Cumulative Gain | >0.7 |\n| Hit Rate | % of queries with at least 1 relevant result | >0.9 |\n\n## Grounding failure taxonomy\n\n| Failure Type | Description | Detection |\n|--------------|-------------|-----------|\n| Hallucination | Model generates fact not in context | Compare output to retrieved docs |\n| Contradiction | Model says X, context says not-X | Semantic similarity check |\n| Irrelevance | Model answers different question | Question-answer alignment |\n| Insufficiency | Context doesn't contain answer | Check if context has required info |\n| Staleness | Context is outdated | Timestamp comparison |\n\n## Evaluation template\n\n```yaml\nquery: \"What is the refund policy?\"\ncontext:\n  - doc1: \"30-day refund policy for all products\"\n  - doc2: \"No refunds after 30 days\"\nexpected_answer: \"30-day refund policy for all products\"\nexpected_docs: [\"doc1\"]\nmetrics:\n  precision@1: 1.0\n  recall@1: 0.5\n  faithfulness: 1.0\n```\n\n## Inspection checklist\n\n- [ ] Query matches user intent (not just keywords)\n- [ ] Retrieved docs are relevant (not just containing keywords)\n- [ ] Answer is grounded in retrieved docs (not from memory)\n- [ ] Answer doesn't contradict retrieved docs\n- [ ] Answer addresses the full question (not partial)\n- [ ] Citation is accurate (doc actually says what's claimed)\n\n## Output format\n- Retrieval quality\n- Grounding quality\n- Risks\n- Likely failure source\n- Fixes\n- Eval suggestions\n",{},"master","f0b9a39cdf4f3e791e3acb54c8740ca23f704176","06-code-quality\u002Frag-evaluation",0,"https:\u002F\u002Fgithub.com\u002FItWasYou-SAM\u002FSkill-is-All-you-Need","https:\u002F\u002Fgithub.com\u002FItWasYou-SAM","https:\u002F\u002Fit-was-you-sam.vercel.app\u002F","AI Engineer ","2026-11-10 22:32:18",{"source":7,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add ItWasYou-SAM\u002FSkill-is-All-you-Need --skill rag-evaluation",{"tool":38,"command":39},"bunx","bunx skills add ItWasYou-SAM\u002FSkill-is-All-you-Need --skill rag-evaluation",{"tool":41,"command":42},"pnpm","pnpm dlx skills add ItWasYou-SAM\u002FSkill-is-All-you-Need --skill rag-evaluation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FItWasYou-SAM\u002FSkill-is-All-you-Need\u002Fblob\u002Fmaster\u002F06-code-quality\u002Frag-evaluation\u002FSKILL.md",true,[],[47,54,61,68,74,80],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":18},"01M75WFD9BZ3S2ZDECD86QP3T9","invoice-organizer","Automatically organizes invoices and receipts for tax preparation by reading messy files, extracting key information, renaming them consistently, and sorting them into logical folders. Turns hours of manual bookkeeping into minutes of automated organization.","https:\u002F\u002Fgithub.com\u002FItWasYou-SAM\u002FSkill-is-All-you-Need\u002Fblob\u002Fmaster\u002F12-business-productivity\u002Finvoice-organizer\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M75WF96VTQYB6FHW43DK9JZ3","file-organizer","Intelligently organizes your files and folders across your computer by understanding context, finding duplicates, suggesting better structures, and automating cleanup tasks. Reduces cognitive load and keeps your digital workspace tidy without manual effort.","https:\u002F\u002Fgithub.com\u002FItWasYou-SAM\u002FSkill-is-All-you-Need\u002Fblob\u002Fmaster\u002F12-business-productivity\u002Ffile-organizer\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M75WF5VR42JXJZ5N6152R4P6","developer-growth-analysis","Analyzes your recent Claude Code chat history to identify coding patterns, development gaps, and areas for improvement, curates relevant learning resources from HackerNews, and automatically sends a personalized growth report to your Slack DMs.","https:\u002F\u002Fgithub.com\u002FItWasYou-SAM\u002FSkill-is-All-you-Need\u002Fblob\u002Fmaster\u002F12-business-productivity\u002Fdeveloper-growth-analysis\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M75WF4PKRDZMHWSC90FVJM1R","connect","https:\u002F\u002Fgithub.com\u002FItWasYou-SAM\u002FSkill-is-All-you-Need\u002Fblob\u002Fmaster\u002F12-business-productivity\u002Fconnect\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M75WF1H9N7Y1C5V6TM397ZGJ","twitter-algorithm-optimizer","https:\u002F\u002Fgithub.com\u002FItWasYou-SAM\u002FSkill-is-All-you-Need\u002Fblob\u002Fmaster\u002F11-brand-marketing\u002Ftwitter-algorithm-optimizer\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M75WEZGF264KM1G13P0CTY4C","tailored-resume-generator","https:\u002F\u002Fgithub.com\u002FItWasYou-SAM\u002FSkill-is-All-you-Need\u002Fblob\u002Fmaster\u002F11-brand-marketing\u002Ftailored-resume-generator\u002FSKILL.md",[],[]]