LAWBUDDY is an advanced legal platform designed to empower individuals with knowledge about their rights and legalities under Indian laws. Leveraging cutting-edge technology, the platform offers a range of features, including a Know-Your-Rights chatbot, document retrieval, legal insights, and more.
- Retrieval Augmented Generation Pipeline: Provides users with specific legal documents and insights based on their queries.
- LayBuddy's Document QNA: Focuses on the importance of documents, offering insights into each point to consider while creating and reviewing legal documents. This feature helps in nullifying human errors during the document preparation process.
- Story-Like Explanations: Simplifies complex legal concepts through engaging narrative-style content, making legal learning more accessible and engaging for Law Students.
- Automated Language Detection: Adapts to users' preferred languages for enhanced accessibility.
- Text-To-Speech Feature: Converts text content into speech, catering to users with diverse needs.
- Legal Document Drafting: Enables users to draft essential legal documents efficiently.
- Advo-Connect: Offers recommendations for lawyers based on user requirements.
- Low-Code Approach: Facilitates easy updates to the vector database, managed by administrators, ensuring the platform remains current and relevant.
To get started with LawBuddy, follow these steps after cloning the repository:
-
Navigate to the Client Directory:
cd client -
Install Dependencies and Run the Project:
npm install npm run dev
-
Open a New Terminal Window.
-
Navigate to the Server Directory:
cd server -
Create and Activate a Virtual Environment:
python -m venv venv source venv/bin/activate # On Windows, use: .\venv\Scripts\activate
-
Install Required Python Packages:
pip install -r requirements.txt
-
Configure Environment Variables: Create a
.envfile in the server directory and define the following environment variables:SECRET_KEY=YourSecretKeyHere OPENAI_API_KEY=YourOpenAIAPIKeyHere HUGGING_FACE_API_KEY=YourHuggingFaceAPIKeyHere PINECONE_API_KEY_FOR_LAWBOT=YourPineconeAPIKeyHere PINECONE_API_KEY_FOR_NARRATIVE=YourPineconeAPIKeyHere PINECONE_ENV=YourPineconeEnvironment
-
Run the Flask Server:
python app.py
-
Open new Terminal and Navigate to the Document Drafting Chatbot Directory:
cd chatbots/document_drafting -
Run ChainLit for Document Drafting:
chainlit run -w ./document_drafting.py --port 8001
-
Open new Terminal and Navigate to the Lawbot Chatbot Directory:
cd chatbots/lawbot -
Run ChainLit for Lawbot:
chainlit run -w ./lawbot.py --port 8002
-
Open new Terminal and Navigate to the Document Summary Chatbot Directory:
cd chatbots/document_sum -
Run ChainLit for Document Summarization:
chainlit run -w ./document_sum.py --port 8003
-
Open new Terminal and Navigate to the Narrative Legalism Chatbot Directory:
cd chatbots/narrative_legalism -
Run ChainLit for Narrative Legalism:
chainlit run -w ./narrative_legalism.py --port 8004
- Frontend: React + Vite + TypeScript
- Backend: Flask, ChainLit
- Database: SQLite
- APIs: OpenAI, Pinecone, Hugging Face
- Aditya Shah - adityashah841
- Devang Shah - Devang-Shah-49
- Hastansh Pandit - Hastansh12
- Meet Vasa - Meet3456











