graphrag-evaluation
Evaluates GraphRAG systems across knowledge graph completeness, retrieval relevance, answer correctness, reasoning depth, and hallucination prevention. Provides structured evaluation frameworks, metric selection guidance, and testing protocols. Use when evaluating GraphRAG quality, benchmarking multi-step reasoning, measuring hallucination reduction, or when user mentions evaluate GraphRAG, quality metrics, answer correctness, test my GraphRAG, or measure RAG performance.
What this skill does
## Table of Contents - [Workflow](#workflow) - [Evaluation Dimensions](#evaluation-dimensions) - [Metric Selection Guide](#metric-selection-guide) - [Output Template](#output-template) # GraphRAG Evaluation ## Workflow Copy this checklist and work through each step: - [ ] Step 1. Identify Evaluation Scope - [ ] Step 2. Select Metrics - [ ] Step 3. Design Test Protocol - [ ] Step 4. Test Reasoning Capabilities - [ ] Step 5. Measure Hallucination Rate - [ ] Step 6. Compare Against Baselines - [ ] Step 7. Produce Evaluation Report ### Step 1. Identify Evaluation Scope Define what aspects of your GraphRAG system you need to evaluate and why. Determine whether you are evaluating the full pipeline or specific components (KG construction, retrieval, generation). Clarify the use case context: domain, query complexity, expected reasoning depth. See [methodology.md](resources/methodology.md) for the full evaluation dimensions framework. ### Step 2. Select Metrics Choose metrics appropriate to your evaluation scope. Not every evaluation requires every metric. Match metrics to your system's maturity and the questions you need answered. See the **Metric Selection Guide** below and [methodology.md](resources/methodology.md) for detailed metric definitions. ### Step 3. Design Test Protocol Build test sets that cover your evaluation dimensions. Include single-hop factual queries, multi-hop reasoning queries, constraint satisfaction queries, temporal reasoning queries, comparative queries, and negative queries (questions the system should not answer). See [methodology.md](resources/methodology.md) for baseline comparison approaches and statistical significance testing. ### Step 4. Test Reasoning Capabilities Evaluate how well your system handles multi-step reasoning. Verify that each reasoning step is grounded in retrieved KG evidence. Check for error propagation where an incorrect intermediate step leads to wrong conclusions. See [reasoning-patterns.md](resources/reasoning-patterns.md) for chain validation, pattern matching, hypothesis verification, and causal reasoning evaluation. ### Step 5. Measure Hallucination Rate Quantify both intrinsic hallucination (contradicts retrieved evidence) and extrinsic hallucination (claims not supported by any retrieved source). Measure the KG grounding rate: what percentage of generated claims are traceable to knowledge graph entities and relations. See [methodology.md](resources/methodology.md) for hallucination detection approaches and comparison protocols. ### Step 6. Compare Against Baselines Run identical test sets against baseline systems: pure vector RAG, LLM-only (no retrieval), and alternative graph configurations. Use controlled ablation studies to isolate the contribution of each component. See [methodology.md](resources/methodology.md) for baseline comparison and ablation study design. ### Step 7. Produce Evaluation Report Compile findings into the structured output template below. Include metric values, baseline comparisons, identified weaknesses, and prioritized recommendations. See [rubric_evaluation.json](resources/evaluators/rubric_evaluation.json) for the scoring rubric (minimum passing score: 3.0). ## Evaluation Dimensions | Dimension | What It Measures | Key Metrics | Priority | |---|---|---|---| | KG Quality | Completeness and accuracy of the knowledge graph | Entity coverage, relation completeness, schema consistency | High | | Retrieval Quality | Effectiveness of graph-based retrieval | Context recall (C-Rec), context precision, multi-hop coverage | High | | Answer Correctness | Accuracy and completeness of generated answers | Factual accuracy, answer completeness, citation accuracy | Critical | | Hallucination Rate | Frequency of unsupported or contradicted claims | Intrinsic hallucination rate, extrinsic hallucination rate, KG grounding rate | Critical | | Reasoning Depth | Ability to perform multi-step reasoning correctly | Multi-hop accuracy, stepwise verification score, error propagation rate | Medium-High | ## Metric Selection Guide Choose metrics based on your evaluation goals: **Quick Health Check** (minimal effort): - Answer correctness on a curated test set (20-50 questions) - KG grounding rate (sample 20 responses) - Single baseline comparison (pure vector RAG) **Standard Evaluation** (recommended): - All five dimensions with standardized test sets - Context recall and context precision - Multi-hop reasoning tests - Hallucination rate measurement - Two or more baseline comparisons **Comprehensive Benchmark** (production readiness): - Full metrics suite across all dimensions - Statistical significance testing with confidence intervals - Controlled ablation study - Process-oriented reasoning evaluation (stepwise correctness) - Automated evaluation pipeline for reproducibility ## Output Template ```markdown # GraphRAG Evaluation Report ## 1. System Under Evaluation - System name and version: - Domain: - KG size (entities/relations): - Evaluation date: ## 2. Evaluation Scope - Dimensions evaluated: - Test set size and composition: - Baseline systems: ## 3. KG Quality Results - Entity coverage: ____% - Relation completeness: ____% - Schema consistency score: ____ - Notable gaps: ## 4. Retrieval Quality Results - Context recall (C-Rec): ____ - Context precision: ____ - Multi-hop coverage: ____% - Latency (p50/p95/p99): ____ ## 5. Answer Correctness Results - Factual accuracy: ____% - Answer completeness: ____% - Citation accuracy: ____% ## 6. Hallucination Analysis - Intrinsic hallucination rate: ____% - Extrinsic hallucination rate: ____% - KG grounding rate: ____% - Comparison with/without graph augmentation: ## 7. Reasoning Depth Results - Single-hop accuracy: ____% - Multi-hop accuracy: ____% - Stepwise reasoning correctness: ____% - Error propagation incidents: ____ ## 8. Baseline Comparison | Metric | GraphRAG | Pure Vector RAG | LLM Only | |--------|----------|-----------------|----------| | Answer correctness | | | | | Hallucination rate | | | | | Multi-hop accuracy | | | | ## 9. Statistical Significance - Test used: - Confidence level: - Significant improvements: - Non-significant differences: ## 10. Identified Weaknesses 1. 2. 3. ## 11. Recommendations | Priority | Recommendation | Expected Impact | Effort | |----------|---------------|-----------------|--------| | | | | | ## 12. Rubric Score - Metric Coverage: __ / 5 - Measurement Rigor: __ / 5 - Baseline Comparison: __ / 5 - Reasoning Depth: __ / 5 - Actionable Recommendations: __ / 5 - **Weighted Total: __ / 5.0** (minimum passing: 3.0) ```
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.