How Lexiel's Legal RAG Works: Legal Research With Checked Citations
Technical and practical explanation of how Lexiel's legal RAG guarantees verified citations and eliminates hallucinations in AI for lawyers. With official 2026 benchmark data.
# How Lexiel's Legal RAG Works: Legal Research With Checked Citations
The biggest fear lawyers have when using AI is legitimate: what if it invents a judgment? Lexiel has solved this with legal RAG architecture. Here's how it works.
The Problem: LLMs Don't Know Case Law
Models like GPT-4 were trained on internet text up to a cutoff date. When you ask ChatGPT for Supreme Court judgments after 2020, it may respond with judgment numbers that look real but don't exist. This is called hallucination and is the greatest risk of using generalist AI in legal contexts.
The Solution: RAG (Retrieval-Augmented Generation)
RAG separates two functions:
- Retrieval: searching a database of real documents for the most relevant fragments
- Generation: using those fragments as context for the LLM to generate a response based on real data
The LLM doesn't have to invent the information, we provide it directly from verified sources.
The Corpus: 7,000+ Verified Sources
- Spain: 1,937 sources (BOE + CENDOJ: Supreme Court, Constitutional Court, National High Court), 95,244 provisions
- LATAM: Mexico, Colombia, Argentina, Chile, Peru
- Global total: 70,000+ sources, 2,300,000+ indexed provisions
The Result: 98.0% on the Official Exam
| System | Score |
|---|---|
| Lexiel with RAG | 98.0% |
A strong general model does well on a test. What the legal corpus and hybrid search add is that each citation carries its source and can be checked.
What Lexiel Cannot Do
- If a judgment is very recent (last 30-60 days) and not yet in the corpus, Lexiel says so clearly instead of inventing it
- The source is always shown for every statement, so lawyers can verify
Try Lexiel free · 28 days
Use code LEX-BLOG for double the standard trial period. Cancel anytime, no commitment.