LawPal is an AI-driven chatbot designed to assist users with legal inquiries, document analysis, and case law retrieval. It simplifies legal research and provides real-time guidance by leveraging Pinecone for vector search, Groq for natural language processing, and Flask for backend services.
- Legal Chatbot: Get instant answers to legal questions.
- Document Analysis: Upload and analyze legal documents.
- Case Law Search: Retrieve relevant case laws based on queries.
- Voice-to-Text & Text-to-Speech: Interact using voice commands and listen to responses.
- Multi-Language Support: Available in multiple languages for accessibility.
- Frontend: Vite, React, Tailwind CSS
- Backend: Flask, Pinecone, Groq
- Authentication: Supabase Authentication
- Voice Recognition: Web Speech API
- Text-to-Speech: Web Speech API
- Routing: React Router
- State Management: React Hooks
git clone https://github.com/AaryanGole26/LawPal.git
cd LawPal- Navigate to the backend folder:
cd server - Install Python dependencies:
pip install -r requirements.txt
- Set up environment variables:
Create a.envfile in the backend folder and add:PINECONE_API=your_pinecone_api_key PINECONE_ENV=your_pinecone_environment GROQ_API=your_groq_api_key SUPABASE_URL=your_supabase_url SUPABASE_KEY=your_supabase_api_key
- Run the Flask server:
The backend will run on
python app.py
http://127.0.0.1:5000.
- Navigate to the frontend folder:
cd App/project - Install Node.js dependencies:
npm install
- Start the development server:
The frontend will run on
npm run dev
http://localhost:5173.
- Set up a Supabase project at Supabase Console.
- Add your Supabase configuration in
src/supabase.js:import { createClient } from '@supabase/supabase-js'; const supabaseUrl = "YOUR_SUPABASE_URL"; const supabaseKey = "YOUR_SUPABASE_API_KEY"; export const supabase = createClient(supabaseUrl, supabaseKey);
- Enable Email/Password and OAuth Authentication in Supabase settings.
- Open your browser and go to
http://localhost:5173. - Log in to access legal assistance services.
- Type or speak legal queries to get AI-powered responses.
- Upload legal documents for analysis and case law retrieval.
Available Legal Services and Features
- Pinecone for vector search capabilities.
- Groq for NLP-powered legal analysis.
- Flask & Vite-React for building the backend and frontend.
- Supabase for authentication and database management.
This project is licensed under the MIT License.