Skills

03 Ref Hallucination Arena

Benchmark LLM reference recommendation capabilities by verifying every cited paper...

Install

npx skills add agentscope-ai/OpenJudge --skill 03-ref-hallucination-arena -g -a claude-code -y
Category
AI and agents
Updated
5d ago
License
Apache-2.0
Context cost
Mediumabout 2,290 tokens
Runs scripts
No, instructions only

What it does

Benchmark LLM reference recommendation capabilities by verifying every cited paper against Crossref, PubMed, arXiv, and DBLP. Measures hallucination rate, per-field accuracy (title/author/year/DOI), discipline breakdown, and year constraint compliance. Supports tool-augmented (ReAct + web search) mode. Use when the user asks to evaluate, benchmark, or compare models on academic reference hallucination, literature recommendation quality, or citation accuracy.

Reference Hallucination Arena Skill

Evaluate how accurately LLMs recommend real academic references using the OpenJudge RefArenaPipeline:

  1. Load queries, from JSON/JSONL dataset
  2. Collect responses, BibTeX-formatted references from target models
  3. Extract references, parse BibTeX entries from model output
  4. Verify references, cross-check against Crossref / PubMed / arXiv / DBLP
  5. Score & rank, compute verification rate, per-field accuracy, discipline breakdown
  6. Generate report, Markdown report + visualization charts

Prerequisites

# Install OpenJudge
pip install py-openjudge

# Extra dependency for ref_hallucination_arena (chart generation)
pip install matplotlib

Gather from user before running

InfoRequired?Notes
Config YAML pathYesDefines endpoints, dataset, verification settings
Dataset pathYesJSON/JSONL file with queries (can be set in config)
API keysYesEnv vars: OPENAI_API_KEY, DASHSCOPE_API_KEY, etc.
CrossRef emailNoImproves API rate limits for verification
PubMed API keyNoImproves PubMed rate limits
Output directoryNoDefault: ./evaluation_results/ref_hallucination_arena
Report languageNo"en" (default) or "zh"
Tavily API keyNoRequired only if using tool-augmented mode

Quick start

CLI

# Run evaluation with config file
python -m cookbooks.ref_hallucination_arena --config config.yaml --save

# Resume from checkpoint (default behavior)
python -m cookbooks.ref_hallucination_arena --config config.yaml --save

# Start fresh, ignore checkpoint
python -m cookbooks.ref_hallucination_arena --config config.yaml --fresh --save

# Override output directory
python -m cookbooks.ref_hallucination_arena --config config.yaml \
  --output_dir ./my_results --save

Python API

Read the whole SKILL.md on GitHub

More in AI and agents