LexEuropa

EU legal research with checked citations.

Ask a question in plain language. LexEuropa answers in numbered statements, each tied to the exact article or judgment paragraph it comes from, with a label that says whether that text really supports it.

A research assistant, not a lawyer. It does not give legal advice.

Built to be checked, not trusted

A fluent answer is easy. A verifiable one is the point.

Every statement cites its source

Answers are broken into short statements, each pointing at the exact article paragraph or judgment paragraph it was drawn from. Click a citation and the passage opens beside the answer.

Citations are verified

A cited passage that was never retrieved is rejected by a hard check with no model involved. Every other citation is judged separately, so one good source cannot hide a bad one.supportedinterpretativeanalysisunsupporteduncertain

It says when it should not answer

Questions outside the library, such as national law or predicting a court case, get a plain refusal. Answers that cite repealed law are flagged, and answers that miss the question are withheld rather than shown.

How an answer is made

Retrieval, generation and checking are separate steps, so each can be inspected on its own.

  1. Find the sources. An exact-reference resolver ("Art. 17(1) GDPR", "C-131/12"), keyword search and meaning-based search are fused into one ranking. Naming a law restricts the search to it.
  2. Add the context. The top articles are expanded to their other paragraphs, and the rulings of leading judgments are added, because a complete answer needs the whole provision.
  3. Write the statements. A small open model, fine-tuned for citation discipline, drafts short statements with source handles. A larger fallback model takes over if it refuses or misses the question.
  4. Check every citation. An existence gate, a source-identity check and an independent judge model label each statement.
  5. Show the evidence. Statements, labels and the cited passages are shown together, with a warning if any source is out of date.

What is in the library

81 instruments and 14,880 passages, all fetched from the EU Publications Office and checked against the real article and paragraph numbering. English only.

Treaties and rights

Treaty on European Union, Treaty on the Functioning of the EU, Charter of Fundamental Rights.

Data protection and digital law

GDPR, Law Enforcement Directive, EU institutions regulation, ePrivacy, e-Commerce, DSA, DMA, Data Act, Data Governance Act, NIS 2, AI Act, Copyright directives, Cyber Resilience Act, MiCA.

Consumer, contract and competition

Consumer Rights, Unfair Commercial Practices, Unfair Terms, Sale of Goods, Digital Content, Product Liability, Rome I and II, Brussels I Recast, antitrust and merger regulations.

Work, equality and mobility

Working Time, Pay Transparency, Platform Work, Transfers of Undertakings, equality directives, Whistleblower, Citizens' Rights, Dublin III, anti-money-laundering.

38 Court of Justice judgments

Every paragraph plus the operative part (the ruling), from Google Spain, Schrems and Planet49 to Kadi, Francovich, Bosman and Google Shopping.

Current text where it changed

Acts amended since publication are read from the latest consolidated version, so amended and deleted provisions read as they do today.

Not covered: national law, Strasbourg human-rights case law (the source sites refuse automated access), Advocate General opinions, other languages, and judgments from before about 1991.

Measured, not promised

Answers are scored against hand-written checklists of what a complete answer must say. Each key phrase was first confirmed to occur in the provision it is based on.

0.87average completeness
71%answers fully complete
28 / 28right provision retrieved
4 / 4out-of-scope questions declined
Citation test (25 questions)Result
Right source in the top results0.96
Cited-source precision / recall0.87 / 0.88

Honest caveats: these sets are small and each was run once. They were measured on the earlier 31-instrument library; the run on the full 81-instrument library is still to come. Completeness here means coverage of the checklist, not legal correctness, and the system is a research aid.

Run it yourself

Open code (MIT), open model weights, and a local interface. Your questions are processed by Hugging Face-hosted models.

git clone https://github.com/lumenworksco/-LexEuropa.git LexEuropa && cd LexEuropa
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
echo "HF_TOKEN=hf_..." > .env
python -m lexeuropa.cli ingest        # fetch and index the library
python3 -m lexeuropa.cli serve        # open http://127.0.0.1:8765