JurisTCU: A Brazilian Portuguese Information Retrieval Dataset with Query Relevance Judgments
This paper introduces JurisTCU, a novel Brazilian Portuguese legal information retrieval dataset featuring 16,045 documents and 150 annotated queries, which demonstrates that document expansion significantly boosts lexical search performance and that OpenAI embeddings outperform other models in capturing semantic relationships for legal queries.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to find a specific needle in a massive, chaotic haystack. But this isn't just any haystack; it's a library of 16,000 legal documents written in Portuguese, created by Brazil's Federal Court of Accounts (TCU). These documents explain how public money should be spent and what rules apply to different situations.
For years, finding the right "needle" (the correct legal precedent) in this haystack has been difficult because the search tools were like a librarian who only listens for exact word matches. If you asked for "money rules," the librarian would ignore a document that said "financial regulations," even if they meant the exact same thing.
This paper introduces JurisTCU, a new tool designed to fix this problem. Think of JurisTCU as a training manual and a test kit for building a smarter librarian.
Here is how the paper breaks it down:
1. The Problem: The "Exact Match" Trap
The current search system at the TCU is like a robot that only understands exact spelling. If you type "tax," it won't find a document that says "levy," even though they are synonyms. This is called the "vocabulary mismatch." The researchers wanted to see if they could teach the robot to understand the meaning behind the words, not just the letters.
2. The Solution: A New Test Kitchen
To test new search methods, the researchers built a dataset called JurisTCU.
- The Library: They gathered 16,045 real legal documents from the TCU.
- The Questions: They created 150 different search questions. Some were short and simple (like "tax rules"), while others were full sentences (like "What are the rules for tax regulations?").
- The Answer Key: This is the most important part. They hired experts and used advanced AI to create an "Answer Key." For every question, they marked exactly which documents were the right answers. This allows them to measure how good a search engine really is.
3. The Experiments: Teaching the Robot New Tricks
The researchers ran 14 different experiments to see how to make the search engine smarter. They tried two main strategies:
Strategy A: The "Document Translator" (Lexical Search)
Imagine you have a document about "financial regulations." The robot can't find it if you search for "tax." So, the researchers used AI to rewrite the document before saving it.
- They added synonyms (like adding "tax" and "levy" to the "financial regulations" document).
- They used AI to guess what questions someone might ask about this document and added those questions to the document's file.
- The Result: This was like giving the robot a dictionary. It worked very well, especially for short, keyword searches. It improved the search results by over 45%.
Strategy B: The "Meaning Reader" (Semantic Search)
Instead of just matching words, this strategy tries to understand the vibe or concept of the text. It turns every document and every question into a unique "fingerprint" (a mathematical vector) based on its meaning.
- They tested several AI models to create these fingerprints.
- The Result: Most of the open-source models (like BERT) struggled, acting like a student who memorized the dictionary but couldn't understand the story. However, the OpenAI models were like a genius student who truly understood the context. They found the right documents 70% better than the old system, even when the search terms were very short.
4. The Big Takeaway
The paper concludes that:
- We need a new standard: JurisTCU is the first major dataset of its kind in Portuguese that includes real search questions and expert answers. It's a benchmark for the community to test future search engines.
- AI can help, but choose wisely: Simply adding synonyms to documents helps a lot. But using advanced AI to understand the meaning of the text (specifically using OpenAI's models) is the most powerful tool they found.
- Real-world impact: This isn't just theory. The TCU's search system is used over 1.5 million times a year by citizens and officials. By using these findings, the TCU can build a search engine that actually helps people find the legal information they need, rather than just matching keywords.
In short, the paper says: "We built a test course for legal search engines in Brazil. We found that while teaching the robot to know synonyms helps, teaching it to understand the meaning of the law is the real game-changer."
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.