Towards Intelligent Legal Information Retrieval a Transformer Based Framework

Abstract — In the evolving landscape of legal technology, retrieving relevant laws and case judgments efficiently remains a critical challenge due to the complexity, ambiguity, and contextual nature of legal language. Traditional keyword-based legal search engines often fail to capture the semantic relevance required for precise legal reasoning. This paper introduces a modern Transformer-based Legal Information Retrieval System tailored to the Indian legal domain, leveraging Retrieval-Augmented Generation (RAG) architecture. The proposed system integrates Google's Gemma 2B-IT language model with semantic embedding techniques using all-MiniLM-L6-v2 for dense vector indexing and similarity matching. A curated corpus of Indian statutes and over 4,000 case judgments is pre-processed, indexed, and embedded using LlamaIndex to enable contextual document retrieval. Queries from users are interpreted semantically and matched with the most relevant legal content before being synthesized into a natural language response. The system demonstrates significant improvements in relevance and response quality compared to rule-based approaches and generic LLM outputs. This research aims to empower legal professionals, students, and the public by providing fast, accurate, and interpretable legal insights through AI, reducing the dependency on manual legal research and improving access to justice. Keywords - Legal Information Retrieval, Retrieval Augmented Generation (RAG), Gemma 2B-IT, Semantic Search, Legal NLP, Case Law Matching, Deep Learning, Legal Document Understanding, Transformer Models.

Authors

Publication Details

Journal
INTERANTIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT
Published
2025-05-18
DOI
https://doi.org/10.55041/ijsrem48260
Primary Topic
Artificial Intelligence in Law
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Towards Intelligent Legal Information Retrieval a Transformer Based Framework

Karthik Surya N A
INTERANTIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT
Artificial Intelligence in Law
article

Towards Intelligent Legal Information Retrieval a Transformer Based Framework

Karthik Surya N A
article en

Abstract

Abstract — In the evolving landscape of legal technology, retrieving relevant laws and case judgments efficiently remains a critical challenge due to the complexity, ambiguity, and contextual nature of legal language. Traditional keyword-based legal search engines often fail to capture the semantic relevance required for precise legal reasoning. This paper introduces a modern Transformer-based Legal Information Retrieval System tailored to the Indian legal domain, leveraging Retrieval-Augmented Generation (RAG) architecture. The proposed system integrates Google's Gemma 2B-IT language model with semantic embedding techniques using all-MiniLM-L6-v2 for dense vector indexing and similarity matching. A curated corpus of Indian statutes and over 4,000 case judgments is pre-processed, indexed, and embedded using LlamaIndex to enable contextual document retrieval. Queries from users are interpreted semantically and matched with the most relevant legal content before being synthesized into a natural language response. The system demonstrates significant improvements in relevance and response quality compared to rule-based approaches and generic LLM outputs. This research aims to empower legal professionals, students, and the public by providing fast, accurate, and interpretable legal insights through AI, reducing the dependency on manual legal research and improving access to justice. Keywords - Legal Information Retrieval, Retrieval Augmented Generation (RAG), Gemma 2B-IT, Semantic Search, Legal NLP, Case Law Matching, Deep Learning, Legal Document Understanding, Transformer Models.

INTERANTIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENTVol. 09(05)
Openalex Percentile: Top 87%
Artificial Intelligence in Law
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.