gitwtfhub

wtf is legalita?

aptus-ai/legalita — explained in plain English

Analysis updated 2026-05-18

20PythonAudience · researcherComplexity · 4/5Setup · hard

TL;DR

A benchmark that tests how well language models reason about Italian case law and notice missing legal documents, using a separately requested task bundle.

Mindmap

mindmap
  root((LegalITA))
    What it does
      Italian case law benchmark
      Legal reasoning tasks
      Missing document detection
    Task bundle
      Requested by email
      107 total tasks
      Placed into specific folders
    Evaluation
      PASS FAIL criteria
      Adaptive 2 of 3 judges
      Requires model API keys
    Not included
      Citation grounding
      Structural Gold v3
      Private indexes

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Evaluate a language model's ability to reason correctly about Italian legal case questions.

REASON 2

Test whether a model notices when a question references documents that were never provided.

REASON 3

Compare multiple judge models' agreement rates when grading the same legal answer.

REASON 4

Study how an adaptive multi-judge grading strategy can reduce single-judge bias.

What's in the stack?

PythonAnthropic APIOpenAI APIPinecone

How it stacks up

aptus-ai/legalitaa-shojaei/constructdrawingaialex72-py/aria-termux
Stars202020
LanguagePythonPythonPython
Setup difficultyhardmoderatemoderate
Complexity4/54/52/5
Audienceresearcherdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · hard Time to first run · 1h+

Requires emailing the authors for the separate task bundle and API keys for both the evaluated model and judge models.

Wtf does this do

LegalITA is a benchmark for testing how well large language models handle Italian case law reasoning. It gives a model a legal question along with a set of PASS or FAIL criteria written by the project's authors, and checks whether the model's answer satisfies those criteria. A second part of the benchmark deliberately gives the model questions that reference documents which were never actually supplied, to see whether the model notices the documents are missing instead of inventing plausible sounding legal advice about content it never read. The README is upfront that cloning this repository alone does not give a person the actual benchmark questions. The 107 task definitions, split into 67 case law reasoning tasks and 40 missing document detection tasks, are distributed separately as a password free ZIP file that has to be requested by email, then extracted into specific folders inside the project before anything can run. The project also describes a more advanced citation grounding pipeline and an internal gold standard builder, but explicitly states that neither is included here because they depend on private search indexes and cloud storage that only the authors control. The public repository is only meant to be run with citation grounding turned off. Once the task bundle is in place, running the benchmark requires API keys for whichever language model is being tested, plus one or more separate judge models that grade each answer. By default, evaluation uses an adaptive process where two judge models look at the same answer independently, and only calls in a third judge model to break a tie if the first two disagree. Setup involves installing the Python package and creating a local file holding API keys for providers like Anthropic and OpenAI. The README does not state a license for this project.

Yoink these prompts

Prompt 1
Walk me through requesting and placing the LegalITA task bundle in the right folders.
Prompt 2
Explain the difference between the case-law reasoning tasks and the missing document tasks.
Prompt 3
How does the adaptive 2-of-3 judge strategy decide when to call a third judge?
Prompt 4
Help me set up the .env file with the API keys this benchmark needs.

Frequently asked questions

wtf is legalita?

A benchmark that tests how well language models reason about Italian case law and notice missing legal documents, using a separately requested task bundle.

What language is legalita written in?

Mainly Python. The stack also includes Python, Anthropic API, OpenAI API.

How hard is legalita to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is legalita for?

Mainly researcher.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.