In a world overflowing with information, accessing and understanding legal documents can still be a challenge—especially when they’re written in dense, bureaucratic language. That’s where Justicio comes in: a free, open-source AI assistant designed to answer everyday questions about official Spanish laws published in the Boletín Oficial del Estado (BOE), Spain’s official government bulletin.
It’s a tool built for citizens, professionals, students, or anyone interested in Spanish public regulations—no legal background required.
What is the BOE?
The BOE (Boletín Oficial del Estado) is Spain’s official state gazette. It publishes all government laws, decrees, regulations, public appointments, and legal notices. Every major change in Spanish legislation first appears here, making it the most authoritative source for public regulations in the country.
The problem? The BOE is written in complex legal language and often hard to navigate—even for locals.
What is Justicio?
Justicio is a web-based AI assistant that uses natural language processing to answer questions about the BOE. Users can type questions in plain Spanish—such as:
- “What are the current tax benefits for freelancers?”
- “Has there been any update on rental assistance in Madrid?”
The system searches official documents and returns a clear, human-like explanation using the latest available legal text. No need to search through dozens of PDFs or interpret legal jargon.
How does it work?
Justicio uses a powerful AI technique called RAG (Retrieval-Augmented Generation). Here’s a simplified breakdown of how it works behind the scenes:
- Every article in the BOE is automatically downloaded daily and broken into small, readable text chunks.
- These chunks are converted into “vectors”—mathematical representations that capture the meaning of the text.
- When a user asks a question, the question is also turned into a vector and compared against all BOE vectors to find the most relevant legal passages.
- The most relevant passages are then passed to an AI language model (LLM) to generate a custom, natural-sounding answer.
- The user receives an easy-to-read, reliable response.
In essence, Justicio finds the right information and explains it in plain language.
Who is it for?
- Spanish citizens who want to know their rights or check regulations.
- Foreigners living in Spain trying to understand their obligations (e.g. taxes, permits).
- Researchers, journalists, students, or anyone interested in Spanish governance.
- Professionals or business owners tracking official decisions that affect their sector.
Even if you’re not from Spain, Justicio can help understand how Spanish public policy is written and applied.
Built on powerful tools
Justicio combines multiple cutting-edge technologies:
- Qdrant – a vector database that helps match your question to the most relevant laws.
- LangChain – manages how data flows between components.
- LLMs (Large Language Models) – generate human-like explanations.
- FastAPI – provides the fast web interface.
- BeautifulSoup – scrapes and processes BOE content daily.
- Sentence-BERT (in Spanish) – ensures accurate semantic matching in the Spanish language.
The code is fully open source and maintained on GitHub.
Why is Justicio important?
Because public laws should be accessible to everyone—not just lawyers.
Justicio bridges the gap between citizens and the state. While it’s not a legal advisor, it helps you find and understand what the law says, faster and more clearly than ever before.
It’s also a model that can inspire other countries to create similar tools for their own legal systems.
Try it now
Justicio is free to use at https://justicio.es. There’s no login or installation required—just type your question and get a legal answer in seconds.
If you understand Spanish or are learning the language, it’s also a great way to explore real-world legal use cases.
Final thoughts
As AI continues to transform how we interact with public information, Justicio is a shining example of how technology can democratize access to law.
Whether you’re a citizen in Spain or simply curious about how governments publish and explain rules, Justicio offers an intelligent, transparent, and open way to explore one country’s legal system—with the power of artificial intelligence behind it.