Skip to content
RAG Repo

Massive Legal Embedding Benchmark (MLEB)

The Massive Legal Embedding Benchmark (MLEB) is an evaluation suite for legal embedding and retrieval models, published by Isaacus in 2025. It gathers ten datasets covering cases, legislation, regulatory guidance, contracts, and legal literature drawn from the United States, the United Kingdom, the European Union, Australia, Ireland, and Singapore. The constituent sets include Bar Exam QA, SCALR, Singaporean Judicial Keywords, GDPR Holdings Retrieval, Australian Tax Guidance Retrieval, Irish Legislative Summaries, UK Legislative Long Titles, Contractual Clause Retrieval, License TL;DR Retrieval, and Consumer Contracts QA. Between them they cover three problem types: retrieval, zero-shot classification, and question answering, at a range of difficulties from lexical matching to tasks that need genuine legal reasoning.

Each dataset is hosted on Hugging Face under the isaacus organisation, typically as query and corpus splits with relevance labels, auto-served as Parquet and readable as JSON. The evaluation code lives in a public GitHub repository and runs with Python and the uv package manager, writing results in MTEB format so scores line up with the wider embedding-benchmark ecosystem. You supply API keys for the embedding providers you want to test.

MLEB is an evaluation resource rather than a knowledge base to index, so its value for RAG work is measuring which embedding or reranking model retrieves legal text most reliably before you commit to one in a pipeline. Watch the licensing: Isaacus aims to license the benchmark and its parts as permissively as possible, but individual datasets carry their own terms (SCALR, for example, is CC BY 4.0) and the evaluation code is MIT, so check each set before reuse and expect attribution obligations on some. If you need broader or general-purpose comparisons, MTEB and BEIR sit alongside this, and LegalBench covers legal reasoning tasks rather than embedding retrieval.

legalembeddingsretrievalbenchmarkevaluationquestion-answering

Related sources