RealBench (RAG) - Level 3: leaderboard

RealBench (2026) asks LLMs to build a whole Python repository from natural-language requirements and UML system designs, here with retrieval-augmented generation (file by file, each conditioned on the earlier generated files it imports) on the level-3 repositories (about 1,340 lines of code). The score is the percentage of the original unit tests that the generated repository passes, higher is better.

Metric: Test pass rate (%), passed tests over all tests of each task, averaged over the level-3 tasks (20 repositories of about 1,340 lines), with retrieval-augmented generation (file by file, each conditioned on the earlier generated files it imports); RealBench repository-level Python code generation from natural-language requirements plus UML package and class diagrams (61 real repositories in four size levels), one greedy solution per task through the official APIs; higher is better. Source: arxiv.org. Saturation forecast: Around 2032. 6 models tracked. Updated 7 Oct 2026.

Top models

#ModelScoreOverall rank
1Claude Sonnet 4 (20250514)19.49#410
2GPT-4o (2024-05-13)19.1#740
3DeepSeek V317.37#736
4Qwen 2.5 Coder 7B Instruct17.08#3976
5Gemini 2.5 Flash14.91#466
6Qwen 3 235B A22B7.16#633

No result here: #2 Claude Fable 5.2, #3 Gemini 4 Neon, #4 GPT-6.2 Astra.

Interactive version: theaggregate.ai/benchmark?slug=realbench-rag-level-3 · How It Works · Data refreshed daily, snapshot 2026-11-22.