Augmented Question-guided Retrieval (AQgR) of Indian Case Law with LLM, RAG, and Structured Summaries
This paper proposes Augmented Question-guided Retrieval (AQgR), a framework that enhances Indian case law retrieval by generating legal issues for queries, using structured RAG summaries for context, and employing LLMs for reranking and relevance explanation, achieving significantly higher Mean Average Precision than existing benchmarks.
Original paper licensed under CC BY 4.0 (https://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
In the world of law, finding the right past decision to support a current case is often the most time-consuming part of a lawyer's job. This is especially true in India, where court judgments are massive, unstructured documents that mix facts, arguments, and rulings into long, continuous blocks of text. Traditionally, computers have tried to help by searching for cases that look similar to the current situation based on the specific words used. If a lawyer describes a dispute about a factory worker's firing, the computer looks for other cases mentioning factories and workers. However, this approach often fails because the law cares more about the underlying legal principle than the specific details of the story. Two cases can involve completely different people and settings but hinge on the exact same legal question, such as whether a government action was fair. To solve this, researchers have turned to a new generation of artificial intelligence known as large language models. These systems can read and understand human language, but they face a significant hurdle: they cannot read thousands of pages of text at once. To work effectively, they need information compressed into a manageable size, and they need to be guided by the right questions rather than just raw facts.
A team of researchers from the Cochin University of Science and Technology and the Naval Physical & Oceanographic Laboratory set out to build a system that could navigate these challenges to retrieve Indian case law. They developed a framework called Augmented Question-guided Retrieval, which operates in two main stages. First, the system takes a long, messy court judgment and uses an artificial intelligence model to extract the most important parts, such as the facts, the legal issues raised, and the final ruling, organizing them into a clean, structured summary. This step is crucial because it shrinks a document that might be twenty thousand words long down to a few key fields that fit inside the computer's memory. Second, instead of searching for cases using the raw story of the current dispute, the system asks the artificial intelligence to generate the specific legal questions that the story raises. It then uses these abstract legal questions to search for past precedents, and finally, a second artificial intelligence model re-ranks the results to explain why each past case is relevant.
The researchers tested this system on a large collection of Indian Supreme Court judgments. They found that the way they structured the information mattered more than the specific search terms used. When the system searched for cases using the generated legal questions rather than the raw facts, it found more relevant precedents, but only when the past judgments had been converted into those short, structured summaries. If the system tried to search through the full, unedited text of the judgments, the short legal questions were too sparse to find a match. The study also revealed a surprising detail about how the system handles citations. Including the names of past cases in the summary actually hurt performance because it added too much noise. However, when the system summarized the legal principle behind each citation instead of just listing the name, the results improved significantly. This suggests that the computer learns better when it understands the rule behind a reference rather than just seeing the reference itself.
To ensure the system was robust, the researchers ran dozens of experiments, changing how the queries were formed and how the data was organized. They discovered that combining different types of searches—using both the facts of the case and the generated legal questions—helped the system find more relevant cases overall, even though it sometimes made the final ranking slightly less precise. They also found that while the system could handle most documents well, the very longest judgments sometimes failed to be summarized correctly, which limited the system's ability to find the perfect match for certain queries. Despite these limitations, the system achieved a level of accuracy that was significantly better than previous methods, reaching a score of roughly 0.312 on a standard test, compared to about 0.157 for the best existing systems. This improvement was achieved without needing to retrain the artificial intelligence on legal data, proving that a smart way of organizing information can be just as powerful as teaching the computer new facts.
The study concludes that the key to making artificial intelligence useful for legal research lies not in making the computer smarter, but in presenting the information in a way the computer can actually use. By compressing long judgments into structured summaries and guiding the search with generated legal questions, the researchers created a pipeline that helps lawyers find the right precedents faster. The system provides not just a list of cases, but a one-sentence explanation for why each case was chosen, allowing a lawyer to quickly decide if the full document is worth reading. While the system is not perfect and still struggles with the very longest documents, it demonstrates a practical path forward for legal technology. It shows that with the right structure, artificial intelligence can help navigate the vast and complex landscape of Indian law, turning hours of searching into minutes of reading.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.