Enhancing Public Access to Legal Knowledge in India: A Legal Chatbot Using Legal BERT, GPT-2, and Retrieval-Augmented Generation (RAG)

This work describes a legal chatbot that would be able to support and aid in answering legal queries on Indian law through the use of Legal BERT, GPT-2, and RetrievalAugmented Generation. This is a chatbot that has been trained by fine-tuning it using a curated corpus consisting of the Indian Constitution and other relevant legal texts, enabling the chatbot to deliver the most accurate, contextually appropriate response. Legal BERT enhances the chatbot’s ability to understand sophisticated legal terminology, while GPT-2 generates responses similar to that of a human with material retrieved from those sources. RAG is incorporated to enhance the retrieval of relevant sources so that accurate and relevant answers are delivered. Accuracy as well as efficiency is displayed by the system; it has very high potential towards enhancing access to public legal information, supporting legal research, and assisting in access to justice initiatives under the Indian legal structure.

Authors

Institutions

Publication Details

Published
2025-02-21
DOI
https://doi.org/10.1109/mpseciceta64837.2025.11118538
Citations
1
Primary Topic
Artificial Intelligence in Law
Type
article
Field-Weighted Citation Impact
8.52
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Enhancing Public Access to Legal Knowledge in India: A Legal Chatbot Using Legal BERT, GPT-2, and Retrieval-Augmented Generation (RAG)

Abhinav Garlapati, Hemanth Koutharapu, Neha Doddi
1 citations
Artificial Intelligence in Law
8.52
article

Enhancing Public Access to Legal Knowledge in India: A Legal Chatbot Using Legal BERT, GPT-2, and Retrieval-Augmented Generation (RAG)

Abhinav Garlapati, Hemanth Koutharapu, Neha Doddi
article en
1 citations

Abstract

This work describes a legal chatbot that would be able to support and aid in answering legal queries on Indian law through the use of Legal BERT, GPT-2, and RetrievalAugmented Generation. This is a chatbot that has been trained by fine-tuning it using a curated corpus consisting of the Indian Constitution and other relevant legal texts, enabling the chatbot to deliver the most accurate, contextually appropriate response. Legal BERT enhances the chatbot’s ability to understand sophisticated legal terminology, while GPT-2 generates responses similar to that of a human with material retrieved from those sources. RAG is incorporated to enhance the retrieval of relevant sources so that accurate and relevant answers are delivered. Accuracy as well as efficiency is displayed by the system; it has very high potential towards enhancing access to public legal information, supporting legal research, and assisting in access to justice initiatives under the Indian legal structure.

Siddhartha Medical College (IN)
Peace, Justice and strong institutions
Openalex Percentile: Top 3%
Artificial Intelligence in Law
8.52
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.