Legal research in India has long been a formidable barrier for anyone without formal legal training. Statutes, judgments, and precedents are scattered across vast archives, and traditional keyword-based search tools often return results that are either too sparse or too technical to be useful. A new study published in Frontiers in Big Data by researchers at VIT University Chennai proposes an artificial intelligence system designed to bridge this gap, combining advanced information retrieval techniques with the reasoning power of large language models to make legal analysis more accessible and more reliable.
The research team, consisting of Kanishkavardhan P, Gowtham S, and Maheswari N, built their system around a multi-stage Retrieval-Augmented Generation, or RAG, methodology. RAG is an approach that grounds the outputs of a generative language model in externally retrieved documents, reducing the tendency of such models to fabricate plausible-sounding but incorrect information. In the legal domain, where a single misattributed citation can undermine an entire argument, this grounding is not a luxury but a necessity.
The framework begins when a user submits a legal query. The system first transforms the question into a vector embedding, a numerical representation that captures the semantic meaning of the text rather than just its surface-level words. At the same time, the query is classified into an appropriate legal category, which helps route the request toward the most relevant body of documents. This dual processing of meaning and category allows the system to understand, for example, that a question about property disputes should be directed toward relevant statutes and case law rather than unrelated procedural texts.
Once the query has been classified, the system deploys a hybrid retrieval mechanism that draws on two complementary search algorithms. The first, BM25, is a well-established keyword-based ranking function that scores documents according to the frequency and distribution of query terms. The second, FAISS, short for Facebook AI Similarity Search, is a library for fast similarity search over high-dimensional vectors, enabling the system to find documents whose meanings are close to the query even when they share few exact words. By running both methods in parallel, the framework captures the strengths of lexical matching and semantic understanding simultaneously.
The results from the two retrieval channels are then merged using Reciprocal Rank Fusion, a technique that combines multiple ranked lists into a single consensus ranking. Rather than simply concatenating results, RRF rewards documents that appear high in both lists, effectively filtering out items that only one algorithm found relevant. This fusion step is critical in legal research, where precision matters enormously; surfacing the wrong precedent at the top of a results list can mislead a user who lacks the expertise to evaluate it critically.
After retrieval, the selected documents are passed to large language models that generate structured, formatted answers aligned with the relevant legal citations. The multi-stage prompting design means the model does not simply produce free-form text; instead, it is guided through staged reasoning that ties each claim in the answer back to the retrieved evidence. The authors report that this pipeline yields improved answer relevancy, reliability, and contextual accuracy compared with conventional approaches, positioning the system as a practical tool for legal research and assistance.
A particularly valuable aspect of the study is its comparative evaluation of three prominent language models operating within the same framework. LLaMA-3.3-70B achieved the highest scores in Answer Relevancy at 0.91 and Faithfulness at 0.92, demonstrating an ability to generate accurate, intent-aligned responses that remain firmly grounded in the retrieved evidence with minimal hallucination. Faithfulness, in this context, measures how closely the generated answer adheres to the source documents, a crucial metric for any system expected to cite legal authority.
Gemini-2.0-Flash showed the strongest Context Recall at 0.78, indicating that it was particularly effective at drawing on the retrieved material when constructing its answers. Mistral-Large, by contrast, excelled in BLEU score, reaching 0.769, along with high semantic similarity, reflecting fluent and natural-sounding text generation. However, the authors note that Mistral-Large exhibited weaker evidence grounding, meaning its polished prose was less reliably tied to the underlying legal documents. This trade-off between fluency and faithfulness illustrates a central challenge in applying generative AI to high-stakes domains: a model that writes beautifully but cites loosely can be more dangerous than one that writes plainly but accurately.
The implications for the Indian judicial system are significant. India’s courts face enormous caseloads, and litigants, law students, and even practitioners often struggle to navigate the sheer volume of legal material. A system that can classify a query, retrieve the most pertinent documents through hybrid search, and generate a structured answer with proper citations could dramatically lower the cost and time of legal research. The authors emphasize that the framework is intended as a research and assistance tool, augmenting rather than replacing professional legal judgment.
The study also contributes to the broader field of legal AI by demonstrating how carefully engineered retrieval pipelines can tame the hallucination tendencies of large language models. Rather than relying on a single model or a single search technique, the multi-stage architecture layers semantic classification, hybrid retrieval, rank fusion, and grounded generation into a coherent whole. As generative AI continues to spread into domains where accuracy is non-negotiable, frameworks of this kind, tested and benchmarked with transparent metrics, offer a template for building systems that are both powerful and trustworthy. The research, received in July 2026 and accepted in September 2026, arrives at a moment when courts and legal institutions worldwide are actively debating how AI should be integrated into the practice of law.
Subject of Research: Retrieval-augmented generation for AI-assisted legal research in the Indian judicial system
Article Title: A retrieval-augmented multi-stage prompting framework for legal analysis in the Indian judicial system
Article References: P., K., S., G., & N., M. (2026). A retrieval-augmented multi-stage prompting framework for legal analysis in the Indian judicial system. Frontiers in Big Data, 9, Article 1933830. https://doi.org/10.3389/fdata.2026.1933830
Image Credits: AI Generated
DOI: 10.3389/fdata.2026.1933830
Keywords: legal AI, retrieval-augmented generation, large language models, Indian judiciary, information retrieval, BM25, FAISS, reciprocal rank fusion, legal reasoning, hallucination, LLaMA-3.3-70B, semantic search
News Source: Denise Maddox. (October 19, 2026). AI Legal Researcher Tackles India’s Courts With Multi-Stage Retrieval Framework. Scienmag.



