A retrieval-augmented multi-stage prompting framework for legal analysis in the Indian judicial system
Kanishkavardhan P., Gowtham S., Maheswari N.
Why it has this license class
AChecked 22 Nov 2026. Open license (CC-BY, CC-BY-SA, CC0, public domain): full text indexed and used in synthesis.
| Source | License | Open-access status | Read as |
|---|---|---|---|
| openalex | cc-by | gold | Green |
| crossref | https://creativecommons.org/licenses/by/4.0/ | — | Green |
| unpaywall | cc-by | gold | Green |
| europepmc | cc by | — | Green |
Abstract
BThe aim of this endeavor was to create an Artificial Intelligence (AI) based legal researcher that utilizes a multi-stage Retrieval-Augmented Generation (RAG) methodology to solve the challenges of finding and comprehending pertinent legal information in the documents. The traditional methods for finding legal documents will usually yield very few results that are useful to someone without a law degree. This new system uses semantic search, keyword retrieval and Large Language Model (LLM) reasoning methods to improve the legal research process. The submitted query will be transformed into a vector embedding while simultaneously being classified into the appropriate category for retrieval. Once the query is classified, the system will use a hybrid retrieval mechanism to find the most relevant legal document based on both BM25 (Best Matching 25) and FAISS (Facebook AI Similarity Search) search algorithms and will combine these results using Reciprocal Rank Fusion (RRF) in order to determine the best results. Later, it will be processed through LLM models to produce formatted (structured) answers to the query in accordance with the relevant legal citation. The overall performance of the proposed system demonstrates improved answer relevancy, reliability and contextual accuracy, thereby making it an effective tool for legal research and assistance. LLaMA-3.3-70B achieved the highest scores in Answer Relevancy (0.91) and Faithfulness (0.92), proving its ability to generate accurate, intent aligned, and evidence-grounded legal responses with minimal hallucination. Gemini-2.0-Flash showed higher Context Recall (0.78), indicating strong retrieval capability, while Mistral-Large excelled in BLEU (0.769) and semantic similarity, highlighting fluent text generation but weaker evidence grounding.
Claims built on this paper
D- P. et al. 2026 add legal analysis to the bundle's hybrid semantic-plus-keyword retrieval pattern: because traditional RAG relies only on semantic matches, their Indian-judiciary framework pairs a domain-adapted legal encoder (InLegalBERT) with keyword-based retrieval, the same combination Choi & Cho 2026 use over fire-investigation narratives. Trace →
- Two high-stakes domains independently reject purely semantic retrieval as insufficiently accountable: P. et al. 2026 require legal conclusions to be justified by explicit references to case law and statutes, and Thomas et al. 2026 require high-risk technical document analysis to reason over retrieved rules in a deterministic, explainable, and auditable manner. Trace →
- The hybrid semantic-plus-keyword retrieval pattern recurs in public health: Xu et al. 2025's MEGA-RAG aggregates FAISS dense retrieval with BM25 keyword search—adding biomedical knowledge graphs—the same semantic-plus-keyword pairing P. et al. 2026 require for legal analysis. Trace →
- Passage-level citation is emerging as a cross-domain remedy for opaque model outputs: Phalke & Bhutnal 2026 argue a retrieval-based HR assistant that cites the specific resume passages behind a recommendation directly addresses the opacity of supervised match scores, the same traceability P. et al. 2026 demand for legal reasoning and Lei et al. 2024 credit to RAG's linkable retrieved documents. Trace →