Benchmark

FolioCore on LegalBench-RAG

We measured FolioCore's retrieval on LegalBench-RAG, a public benchmark of legal documents, using the authors' data and scoring formula. This page shows every result, including the ones where we do worse.

  • 6,889 questions over 714 documents
  • Retrieval on the Mac, offline
  • Public data and scoring

At a glance

The main numbers

41.3%

of the text marked by experts is among the 16 sources FolioCore passes to the chat.

Full set, 6,889 questions. 95% interval: 39.6% to 43.0%.

96%

of questions have the right document among the 16 sources.

It is in first place in 16% of cases: our main weakness.

51.9%

on the authors' subset, reading 16,000 characters per question.

The reference published by the authors, with a cloud model, reaches 49.7%.

4.9 s

median retrieval time per question.

Mac with an M5 chip and 32 GB, offline. The chat answer takes additional time.

What LegalBench-RAG measures

LegalBench-RAG is a benchmark published in 2024 by researchers at ZeroEntropy (Pipitone and Houir Alami, arXiv:2408.10343). For each question about a document, legal experts marked the exact passages that contain the answer. The system has to find them.

The questions cover four English collections: non-disclosure agreements (ContractNLI), merger and acquisition agreements (MAUD), commercial contracts (CUAD) and privacy policies (PrivacyQA). The main score is recall: the share of the text marked by the experts that falls inside the passages returned.

It measures the retrieval step, the one that picks the passages the chat reads.

Comparison with the authors

At equal text read

The authors published their results on the mini subset: 776 questions over 72 documents, with an OpenAI embedding model in the cloud and 500-character passages. FolioCore passages are about 1,500 characters long, so the fair comparison is at equal characters read.

FolioCore 2.1, on the MacAuthors' reference, in the cloud
FolioCore on LegalBench-RAG: retrieval benchmark results | FolioCoreLegalBench-RAG mini, 776 questions. FolioCore 2.1 on the Mac; reference: table 5 of the authors' paper.0102030405060702,0004,0008,00016,00032,000Characters read per question% of expected text found51.949.7Reference62.2%FolioCore56.7%
LegalBench-RAG mini, 776 questions. FolioCore 2.1 on the Mac; reference: table 5 of the authors' paper.
Show the data
Characters readFolioCore 2.1, on the MacAuthors' reference, in the cloud
2,000 characters7.8%16.9%
4,000 characters14.1%26.3%
8,000 characters33.2%37.1%
16,000 characters51.9%49.7%
32,000 characters56.7%62.2%

At 16,000 characters FolioCore finds 51.9% of the expected text and the reference 49.7%. In the first 8,000 characters we are behind: the right passage is often there, but lower in the ranking.

At 32,000 characters the reference reaches 62.2%. FolioCore passes at most 16 sources to the chat, about 24,000 characters, and stops at 56.7%.

By type of document

The same comparison, split by collection, at two amounts of text read.

FolioCore 2.1, on the MacAuthors' reference, in the cloud

8,000 characters read

FolioCore on LegalBench-RAG: retrieval benchmark results | FolioCoreLegalBench-RAG mini. The numbers on the bars are FolioCore's; every value is in the data table.020406080Privacy52.6NDA34.0M&A7.4Contracts38.6

16,000 characters read

FolioCore on LegalBench-RAG: retrieval benchmark results | FolioCoreLegalBench-RAG mini. The numbers on the bars are FolioCore's; every value is in the data table.020406080Privacy72.5NDA56.3M&A18.6Contracts60.4
LegalBench-RAG mini. The numbers on the bars are FolioCore's; every value is in the data table.
Show the data
Collection8,000 characters read, FolioCore 2.1, on the Mac8,000 characters read, Authors' reference, in the cloud16,000 characters read, FolioCore 2.1, on the Mac16,000 characters read, Authors' reference, in the cloud
Privacy policies (PrivacyQA)52.6%55.1%72.5%71.2%
Non-disclosure agreements (ContractNLI)34.0%35.8%56.3%46.6%
Mergers and acquisitions (MAUD)7.4%12.9%18.6%21.0%
Commercial contracts (CUAD)38.6%44.4%60.4%60.0%

At 8,000 characters we are behind the reference in all four collections. At 16,000 we are ahead on non-disclosure agreements (56.3% against 46.6%), level on commercial contracts and privacy policies, and behind on merger agreements (18.6% against 21.0%).

Merger agreements are very long documents, over 350,000 characters on average, and the expected text is a single provision: it is the hardest collection for the reference too.

Full set

With 714 documents the task gets harder

The authors did not publish results on the full set, which is ten times larger. Here we show only our number, next to the mini result.

Mini: 72 documents, 776 questionsFull: 714 documents, 6,889 questions
FolioCore on LegalBench-RAG: retrieval benchmark results | FolioCoreFolioCore 2.1. The numbers on the bars are for the full set; the mini values are in the data table.020406080% of expected text found among the 16 sourcesPrivacy policies65.7%Non-disclosure agreements38.9%Mergers and acquisitions9.2%Commercial contracts51.2%Average41.3%
FolioCore 2.1. The numbers on the bars are for the full set; the mini values are in the data table.
Show the data
CollectionMini: 72 documents, 776 questionsFull: 714 documents, 6,889 questions
Privacy policies (PrivacyQA)72.7%65.7%
Non-disclosure agreements (ContractNLI)63.8%38.9%
Mergers and acquisitions (MAUD)25.0%9.2%
Commercial contracts (CUAD)67.0%51.2%
Average of the four57.1%41.3%

The average drops from 57.1% to 41.3%. On the same 776 mini questions, adding the other documents takes the result from 57.1% to 44.7%: the main cause is documents that closely resemble each other.

Non-disclosure agreements often follow the same template: on the full set almost 9 sources in 10 come from a document other than the one asked about. The privacy policies are the same seven in both sets, and they lose 7 points only because passages from contracts enter the sources.

Where we do better and where we do worse

Where we do better

Results where FolioCore is level or ahead.

  • At 16,000 characters read on the mini, ahead of the reference on average and level or ahead in three collections out of four.
  • Privacy policies: 65.7% on the full set, 72.7% on the mini.
  • The right document is among the 16 sources in 96% of full-set questions.
  • Indexing and retrieval run on the Mac, with 0.6-billion-parameter models and no connection.

Where we do worse

Results where we are behind today.

  • The top positions: in the first 4,000 characters we find 14.1% of the expected text on the mini, against 26.3% for the reference.
  • Collections of very similar documents: on the full set, non-disclosure agreements drop to 38.9%.
  • Very long merger agreements: 9.2% on the full set, 25.0% on the mini.
  • The right document is in first place in only 16% of full-set questions.

What this means if you use FolioCore

In Case Folder the chat reads up to 16 sources per question. The benchmark shows the right passage is there in most cases, not always at the top of the list, and sometimes missing. That is why every answer lists its sources with the cited point: open them and check.

In a folder with many contracts built on the same template, such as a data room, check that the cited source is the contract the question is about. That is where retrieval goes wrong most often today.

We have identified the main causes and are measuring them. When a release changes retrieval, we repeat the test with the same protocol and update this page.

Method

How we measured

Authors' referenceFolioCore 2.1
Where it runsCloud serviceOn the Mac, offline
ModelsOpenAI text-embedding-3-large, no rerankerQwen3 Embedding 0.6B and Qwen3 Reranker 0.6B
Passages500 characters, 1 to 64 per questionAbout 1,500 characters, 16 per question
SetsMini, 776 questionsMini, 776 questions, and full, 6,889 questions
ScoringAuthors' evaluation codeThe same formula, with overlapping passages counted once

Test run on 20 and 21 November 2026 with FolioCore 2.1 on a Mac with an M5 chip, 32 GB of memory and macOS 26.6, on the document text provided by the authors. The authors' formula counts the text of overlapping passages twice: with that formula the full-set result would be 47.4%. We report the more conservative value, 41.3%. Reference values are from table 5 of the paper.

Limits of this test

The benchmark is in English and covers contracts and privacy policies. It does not include litigation documents, documents in Italian or Spanish, or email.

It measures retrieval only. Reading scans, converting files and the quality of written answers are outside the test.

The authors' reference configuration is a simple retrieval setup, meant as a starting point: a complete system should reach it. The comparison tells us where we stand.

It is a single run on a single Mac. On request we provide the list of passages returned for each question and the script to recompute the score: write to support@foliocore.pro.

Frequently asked questions

Does the benchmark measure the quality of chat answers?

No. It measures whether FolioCore finds the passages that contain the answer. The written answer also depends on the model that generates it and should be checked against the sources.

Why compare characters read instead of the number of passages?

FolioCore passages are about three times longer than the reference's. At an equal number of passages FolioCore would read more text and the comparison would favour it.

Why is there no comparison with the authors on the full set?

The authors published results on the mini subset only. On the full set we report our result without an external reference.

Were the benchmark documents sent to external services?

No. Indexing and retrieval ran on the Mac, offline, as in the app.

Can I repeat the test?

The data and the evaluation code are public. On request we provide the passages returned for each question and the script to recompute the score.

Try it on your own documents

A benchmark shows how retrieval behaves on average. To judge it on your work, try FolioCore on a matter you know well.

Apple Silicon · macOS 26.4 or later · Requirements vary by feature