返回 Skill 列表
extension
分类: 开发与工程无需 API Key

libeval

libeval - RAG评估系统。Evaluator使用LLM作为裁判的模式来协调质量评估。CriteriaEvaluator根据评分标准对响应进行打分。RecallEvaluator衡量检索性能。TraceEvaluator分析执行轨迹。EvalStore保存结果。用于自动化质量测试、RAG管道评估和代理性能测试。

person作者: jakexiaohubgithub

libeval Skill

When to Use

  • Evaluating RAG agent response quality
  • Measuring retrieval recall and precision
  • Running automated quality assessments
  • Benchmarking agent performance over time

Key Concepts

Evaluator: Main orchestrator that runs test cases through the agent and collects metrics.

CriteriaEvaluator: Uses LLM-as-judge to score responses against defined criteria and rubrics.

RecallEvaluator: Measures how well the retrieval system returns relevant documents.

TraceEvaluator: Analyzes execution traces for performance and correctness.

Usage Patterns

Pattern 1: Run evaluation suite

import { Evaluator } from "@copilot-ld/libeval";

const evaluator = new Evaluator(config);
const results = await evaluator.run(testCases);
console.log(results.summary);

Pattern 2: Criteria-based evaluation

import { CriteriaEvaluator } from "@copilot-ld/libeval";

const criteria = new CriteriaEvaluator(llmClient);
const score = await criteria.evaluate(response, rubric);

Integration

Configured via config/eval.yml. Run via make eval. Uses libllm for LLM-as-judge.