CLAUDE.md
Defines a financial reasoning benchmark with 306 curated problems across seven categories and evaluation runners for multiple LLM providers.
What this file does
Defines a financial reasoning benchmark with 306 curated problems across seven categories and evaluation runners for multiple LLM providers.
When to use it
- Building a domain-specific LLM evaluation benchmark
- Adding a new LLM provider to an existing evaluation framework
- Creating a structured problem schema with difficulty levels and categories
- Setting up a Gradio leaderboard for comparing model performance
Assumes this stack
CLAUDE.md
This file provides guidance to Claude Code when working with this repository.
What This Is
A benchmark for evaluating LLM performance on financial reasoning tasks. Contains 306 curated problems across seven categories (earnings surprises, DCF sanity checks, accounting red flags, catalyst identification, formula audit, financial statement analysis, risk assessment) with difficulty levels from easy to expert. Includes multi-provider evaluation runners, a Gradio leaderboard, and HuggingFace dataset integration.
Commands
# Setup
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Run (via run.sh)
./run.sh setup # Create venv & install deps
./run.sh eval claude-sonnet-4 test 50 # Evaluate a model
./run.sh leaderboard # Launch Gradio leaderboard UI
# Run (manual)
python3 runners/run_evaluation.py --model claude-sonnet-4 --limit 50
# Tests
pytest tests/ -v
# Lint
ruff check .
Architecture
problems/-- Problem schema dataclasses, advanced curated problems, quant concept problemsgenerators/-- Per-category problem generators (earnings, DCF, accounting, catalyst, formula, financial statement) with shared base classevaluation/-- Dataset loader (dataset.py), scoring metrics (metrics.py), rubric scoring (rubric_scoring.py), FLaME alignment mapping, narrative evaluationrunners/-- LLM runner base class + provider-specific runners (Anthropic, OpenAI, HuggingFace, Ollama) and main evaluation scriptleaderboard/-- Leaderboard system and submission handlingvendor_assessment/-- Comparative framework for evaluating LLM vendors across scoring dimensionsspaces/app.py-- Gradio web UI for HuggingFace Spacesdata/-- Generated benchmark JSON files and HuggingFace exportrun.sh-- Orchestrator script for setup, generation, evaluation, and leaderboard
Key Patterns
- Problems follow a strict schema with
id,category,difficulty,question,context,answer_type,correct_answer,answer_options,explanation,reasoning_steps, andtags - Runners implement a base class; adding a new LLM provider means subclassing
runners/base.py - Dataset splits: train (214), validation (46), test (46)
- Evaluation filters by category and difficulty via CLI flags
- Benchmark versioning tracks problem count changes (v1.0.0 through v1.3.0)
Testing Conventions
- Tests in
tests/with smoke test, rubric scoring tests, and vendor assessment tests - Run with
pytest tests/ -v - Also runnable via
./run.sh test
What's inside
8 directory sections, 6 CLI commands, 3 dataset splits, 1 problem schema with 11 fields
Change this for your project
- Replace
bdschi1/fin-reasoning-evalwith your own repository name - Replace
claude-sonnet-4with your target model identifier - Replace
requirements.txtwith your own dependencies file - Replace
spaces/app.pywith your own Gradio app path
Where it goes
Save as CLAUDE.md in your repository root. Claude Code reads it automatically at the start of every session.
Worth borrowing
- Per-category problem generators with a shared base class for extensibility
- CLI orchestrator script that wraps setup, evaluation, and leaderboard commands
- Strict problem schema with version tracking for benchmark reproducibility
Related Documents
Code indexing for AI agents: summarization strategies and evaluation systems
Synthesises 2024-2025 research on code indexing for AI agents, covering summarisation strategies, hybrid retrieval architectures, and evaluation benchmarks.
Claude AI Git Workflow Integration
Recommends using the git-ai-commit CLI tool for AI-generated commit messages instead of manual ones.
Missing Business Agents Research — FLUXION 2026
Identifies 12 missing business operations agents for an indie software company and ranks them by impact and effort with €0 implementation plans.
角色:金牌面试者
Prompts Claude to act as a resume consultant, collecting user info and generating a polished A4-format React resume component with STAR-format experience.