BNS Mitra: RAG-Optimized LLM Based AI-Powered Legal Virtual Assistant
This paper presents BNS Mitra, a Virtual legal assistant for Bharatiya Nyaya Sanhita (BNS), which is powered by Artificial intelligence and is designed with RAG (Retrieval Augmented Generation) framework. Since many stakeholders exist: law enforcement, advocates, judiciary members and common people, BNS Mitra assisted by Meta's LLAMA 2 model is helpful in translating user-described incidents into legal sentences to determine the most relevant sections of BNS. BNS Mitra incorporated FAISS (Facebook AI Similarity Search) that provides the encoded BNS database for encoding vectors to use as a database suitable for user queries, thus allowing contextual legal advice to be provided in due time. Due to its simple design, the general public is able to obtain legal information. On the other hand, the time spent carrying out manual research is reduced since professionals are able to quickly obtain relevant sections. In tests BNS Mitra managed to achieve 87% accuracy regarding which BNS sections were most closely related to user input. The software performed well enough in simple cases, but some issues were identified in more complex cases. This paper presents the capacity of AI as a tool to diminish the knowledge gap in the Indian legal system and recommends the idea of expanding the scope of BNS Mitra to other legal areas/fields and language models.
Authors
- Nikhil Sharma (ORCID: https://orcid.org/0000-0003-4751-2970)
- Narendra Singh Kushwaha (ORCID: https://orcid.org/0000-0003-2721-8635)
- Rizwan Alam (ORCID: https://orcid.org/0000-0002-5019-0389)
- Bhavesh Patil
- Tejas V. Kalal
- Pulkit Porwal
Institutions
- Gujarat National Law University (IN)
- Gujarat Matikam Kalakari & Rural Technology Institute (IN)
Publication Details
- Published
- 2025-04-04
- DOI
- https://doi.org/10.1109/iccsai64074.2025.11063757
- Primary Topic
- Artificial Intelligence in Law
- Type
- article
- Field-Weighted Citation Impact
- 0.00