llm-evaluation

Automate LLM evaluation with automated metrics, human feedback, and benchmarking.

Updated Jun 10, 2025
One-click install
npx skills add https://github.com/Kingly-Agency/kingly-claude-adapter --skill llm-evaluation-kingly-agency
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: llm-evaluation
Source: https://github.com/Kingly-Agency/kingly-claude-adapter/tree/main/plugins/cache/claude-code-workflows/llm-application-dev/1.2.1/skills/llm-evaluation
Command: npx skills add https://github.com/Kingly-Agency/kingly-claude-adapter --skill llm-evaluation-kingly-agency

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

Master comprehensive evaluation strategies for LLM applications, enabling reliable deployment through automated metrics, human evaluation, and benchmarking.

Core Features & Use Cases

  • Automated Metrics: BLEU, ROUGE, METEOR, BERTScore, Perplexity
  • Retrieval (RAG) Metrics: MRR, NDCG, Precision@K, Recall@K
  • Human Evaluation: Dimensions like Accuracy, Coherence, Relevance, Fluency, Safety, Helpfulness
  • LLM-as-Judge: Pointwise, Pairwise, Reference-based, Reference-free evaluation
  • A/B Testing and benchmarking workflows

Quick Start

Define an evaluation suite with chosen metrics, prepare test cases (inputs, contexts, and expected outputs), run the evaluation against your model, and review aggregate results.

Frequently Asked Questions about llm-evaluation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I evaluate LLM outputs with automated metrics like ROUGE and BERTScore?

Automated metrics quantify LLM performance by comparing generated outputs against reference text or ground truth. ROUGE measures token overlap; BERTScore uses semantic embeddings for meaning-based comparison. Define your metric suite, prepare test cases with expected outputs, run evaluation against your model, and review aggregate scores to measure quality and detect regressions.

What's the difference between BLEU, ROUGE, and BERTScore for LLM evaluation?

BLEU counts n-gram matches and favors exact word overlap; ROUGE measures recall of overlapping text spans; BERTScore compares semantic similarity using contextual embeddings, capturing meaning even with paraphrasing. Choose BLEU for strict phrasing tasks, ROUGE for summarization, and BERTScore for fluency-tolerant evaluation.

Can I use LLM-as-Judge evaluation instead of reference-based metrics?

Yes. LLM-as-Judge workflows evaluate outputs without requiring reference text, using pointwise scoring (single output rated independently) or pairwise comparison (choosing between two outputs). Reference-free evaluation suits open-ended tasks where ground truth is unavailable; reference-based metrics work better for deterministic tasks with known correct answers.

How do I set up A/B testing and benchmarking for prompt or model comparisons?

Define evaluation dimensions (accuracy, coherence, relevance, fluency, safety), prepare identical test cases, run both variants through your metrics suite, and compare aggregate results. Benchmarking tracks baselines across development and production; A/B testing validates whether prompt changes or model swaps improve measurable performance.

What evaluation metrics work best for retrieval-augmented generation (RAG)?

Retrieval metrics measure ranking quality: MRR (Mean Reciprocal Rank) scores first-relevant-item position, NDCG penalizes relevant items ranked lower, Precision@K and Recall@K measure coverage within top-K results. Use these alongside generation metrics like BERTScore to evaluate both retrieval effectiveness and answer quality.

Do I need human evaluation if I have automated metrics?

Automated metrics catch obvious failures but miss nuance. Human evaluation on dimensions like coherence, safety, usefulness, and relevance captures quality automated metrics miss. Combine both: use automated metrics for scale and regression detection, reserve human evaluation for validation, model selection, and edge cases.