Description
LegalMitra is a comprehensive legal information portal designed to provide users with easy access to legal information through a voice-enabled AI chatbot. Developed using Python, Flask, SQLite, and vanilla JavaScript, LegalMitra is a second-year engineering mini project that showcases the integration of various technologies to create a functional and user-friendly application.
One of the key features of LegalMitra is its TF-IDF search engine, which has been written from scratch to deliver a 93.3% Top-1 accuracy. This search engine allows users to efficiently find relevant legal information by analyzing the frequency and importance of terms within the dataset.
The voice-enabled AI chatbot enhances user interaction by allowing users to ask questions and receive answers in a conversational manner. This feature makes LegalMitra accessible to a wider audience, including those who may prefer voice interaction over traditional text-based searches.
LegalMitra is built on a robust backend using Flask, a lightweight web framework for Python, and SQLite, a self-contained, serverless database engine. This combination ensures that the application is both scalable and efficient, capable of handling multiple user queries simultaneously.
The frontend of LegalMitra is developed using vanilla JavaScript, providing a clean and responsive user interface. This ensures that users have a seamless experience when navigating the portal and accessing the information they need.
As a mini project, LegalMitra demonstrates the potential of integrating AI and machine learning technologies into practical applications. It serves as an educational tool for students and developers interested in exploring the capabilities of AI in the legal domain.
LegalMitra's Core Features
Voice-enabled AI chatbot
TF-IDF search engine with 93.3% accuracy
Python and Flask backend
SQLite database integration
Vanilla JavaScript frontend
Legal information portal
Second-year engineering project
Custom search engine
Getting Started with LegalMitra
Clone: Download the repository from GitHub
Install dependencies: Set up required libraries and packages
Configure: Set up database and environment variables
Execute: Run the application on a local server
Optimise: Fine-tune search engine parameters
LegalMitra's Use Cases
- Legal research
- Educational tool
- Voice interaction
- Search optimization
- Project development





