Vol. 4 No. 4 (2025): October
RESEARCH ARTICLES

AI-Powered Interactive Legal Chatbot for the Department of Justice

K L Srujan Surya
School of Computer Science and Engineering, REVA University, Bengaluru, India
Edwin Mark K
School of Computer Science and Engineering, REVA University, Bengaluru, India
Kushal S
School of Computer Science and Engineering, REVA University, Bengaluru, India
Charan Tej P
School of Computer Science and Engineering, REVA University, Bengaluru, India
Afifa Salsabil Fathima
School of Computer Science and Engineering, REVA University, Bengaluru, India

Published 2025-05-19

Keywords

  • AI assistant,
  • justice system,
  • legal chatbot,
  • legal document summarization,
  • LLaMA 3.1

How to Cite

K L Srujan Surya, Edwin Mark K, Kushal S, Charan Tej P, & Afifa Salsabil Fathima. (2025). AI-Powered Interactive Legal Chatbot for the Department of Justice. International Journal of Computational Learning & Intelligence, 4(4), 809–817. https://doi.org/10.5281/zenodo.15465000

Abstract

This paper details the development and conceptual framework of an AI-based interactive chatbot designed for the Department of Justice website in India, aimed at bridging the significant accessibility gap in public legal assistance. Thesystem leverages a Flask backend, a JavaScript-powered frontend, and the LLaMA 3.1 large language model accessed via Ollama to provide real-time legal query responses, summarization of legal documents (PDF/DOCs including FIRs and petitions), and basic multilingual capabilities (English/Hindi) with citation support. The Paper focuses on creating a free, user-friendly, and scalable virtual legal assistant tailored for common public queries and document analysis, thereby enhancing legal literacy and empowering citizens. This paper outlines the chatbot's system architecture, core feature implementation (including prompt engineering and translation services), illustrative use cases demonstrating its functionality, and discusses the technical challenges, ethical considerations, and potential societal impact of deploying such a system in the Indian legal context. It concludes by summarizing the Paper's contributions and suggesting avenues for future development to further improve its efficacy and reach in democratizing legal information.

References

  1. Kumar, A., Mehta, S., & Singh, R. (2023). Large language models in legal applications: Opportunities and challenges. Journal of AI and Law, 12(3), 245–260.
  2. Patel, V., & Sharma, D. (2024). Chatbots for public services in India: A case study approach. International Journal of E-Governance, 8(2), 112–128.
  3. Meta AI Research. (2023). LLaMA 3: An open foundation language model (Meta AI Technical Report).
  4. Ollama.ai. (2023). Ollama: Run open large language models locally. https://ollama.ai/
  5. Gupta, P., & Jain, R. (2021). Natural language processing for legal document analysis: A survey. Artificial Intelligence and Law, 29, 171–196.
  6. Venkatesh, S., Singh, A., & Basu, N. (2023). Multilingual legal translation systems: Challenges and solutions. In Proceedings of the International Conference on Legal Technology (pp. 45–52).
  7. Sharma, M., Verma, K., & Reddy, L. (2022). Automatic summarization of legal documents: Progress and open challenges. IEEE Access, 9, 54321–54335.
  8. Grinberg, M. (2023). Flask web development: Developing web applications with Python (2nd ed.). O'Reilly Media.
  9. Kumar, R. (2023). Data protection laws in India: Current framework and future directions. Journal of Indian Law, 15(4), 312–328.
  10. Kumar, S. S., Ahmed, S. T., Flora, P. M., Hemanth, L. S., Aishwarya, J., GopalNaik, R., & Fathima, A. (2021). An improved approach of unstructured text document classification using predetermined text model and probability technique. In ICASISET 2020: Proceedings of the First International Conference on Advanced Scientific Innovation in Science, Engineering and Technology (p. 378).
  11. Nair, S., & Mittal, P. (2024). Technology for legal accessibility in developing nations. Access to Justice Review, 6(2), 78–94.
  12. Desai, R., & Kulkarni, A. (2023). Ethical implications of AI-powered legal advisors. Journal of Legal Ethics and Technology, 7(1), 33–47.
  13. Banerjee, T., Iyengar, S., & Khosla, M. (2022). Judicial decision prediction using transformer models. In Proceedings of the International Conference on AI & Law (pp. 98–105).
  14. LK, S. S., Rana, M., & Ahmed, S. T. (2021, November). Real-time iot based temperature and npk monitoring system sugarcane-crop yield for increasing. In 2021 Innovations in Power and Advanced Computing Technologies (i-PACT) (pp. 1-5). IEEE.
  15. Fathima, A. S., Prakesh, D., & Kumari, S. (2022). Defined Circle Friend Recommendation Policy for Growing Social Media. International Journal of Human Computations & Intelligence, 1(1), 9-12.
  16. Suresh, B., & Iyer, G. (2023). LegalBot: A rule-based and NLP-enhanced chatbot for civil cases. Indian Journal of Computer Applications in Law, 4(2), 120–135.
  17. European Commission. (2023). AI and the rule of law: Use of AI in legal systems. https://ec.europa.eu/digital-strategy/
  18. Zhang, Y., Wu, L., & Chen, K. (2024). Zero-shot legal text classification with foundation models. arXiv preprint arXiv:2401.01234. https://arxiv.org/abs/2401.01234