Loading article...
Loading article...
Stream/Area:
-
Subject:
-
Paper ID:
IJSREM54798
Volume:
9 |
12 |
Dec 2025
Pages:
Publication Frequency:
Monthly (12 issues per year)
License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.
We present VAKIL, a domain-focused virtual assistant for Indian law created by fine-tuning Microsoft’s Phi-3 Mini (4K Instruct) model with Low-Rank Adaptation (LoRA). The training corpus comprised curated Supreme Court judgments, constitutional provisions, statutory legislation, and other authoritative legal texts. Fine-tuning was performed on a RunPod RTX A6000 instance for 18 hours across two epochs, yielding a marked decrease in training loss and improved domain alignment. To ensure responses are factually grounded, VAKIL integrates a Retrieval-Augmented Generation (RAG) pipeline: documents are chunked, tokenized, embedded, and indexed using a FAISS semantic vector store to enable high-precision retrieval. For relational and precedent-style reasoning, we construct a Neo4j AuraDB knowledge graph representing cases, statutes, and legal doctrines, and we apply a Graph Neural Network (GNN) over this graph to capture cross-document relationships and citation structure. We evaluate VAKIL through intrinsic measures (loss curves, perplexity, and reductions in hallucination) and extrinsic tasks (legal question answering, statutory interpretation, and judgment summarization). Compared to the unadapted Phi-3 base, our fine-tuned model shows improved accuracy, stronger domain specificity, and greater interpretability. The final model is released on the Hugging Face Hub and served via a serverless vLLM runtime on RunPod to support low-latency API access. A chat-based interface was implemented to support learners, researchers, and legal practitioners. VAKIL offers a reproducible workflow for building regionally focused legal assistants that balance retrieval, graph-based reasoning, and model fine-tuning. It is designed as an educational and research aid—not as a substitute for professional legal advice—and provides a transparent foundation for future enhancements.
KEYWORDS
Publication Date
2/11/2025
Peer Review Type
Double-Blind Peer Review
Review Rounds: 2
Documents
Article Views
0
Total views since publication
PDF Downloads
4
Total downloads since publication
Geographic Reach
5
Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.
Plagiarism Screening
This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.
Conflict of Interest
The authors declare no conflict of interest related to this research work.
Funding Information
No funding information available for this research.
Related research in the same subject area
Loading similar articles...