Skip to content

Devang-Shah-49/LegalAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

LAWBUDDY

Introduction

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.

Home Page

image

Client connects to Advocate

image

Personal Assistant

image

Webscrapping Latest News

image

Feature Page

image

Lawbot

image

Document Summarization/QNA

image

Narrative Legalism

image

Document Drafting

image

Advocaate Connect Page

image

Admin Dashboard

image

image

Features

Know-Your-Rights Chatbot/Lawbot

  • Retrieval Augmented Generation Pipeline: Provides users with specific legal documents and insights based on their queries.

Document Summarization

  • 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.

Narrative Legalism

  • Story-Like Explanations: Simplifies complex legal concepts through engaging narrative-style content, making legal learning more accessible and engaging for Law Students.

Multilingual Support

  • 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.

Additional Features

  • 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.

Getting Started

To get started with LawBuddy, follow these steps after cloning the repository:

Setting Up the Client-Side

  1. Navigate to the Client Directory:

    cd client
  2. Install Dependencies and Run the Project:

    npm install
    npm run dev

Setting Up the Server-Side

  1. Open a New Terminal Window.

  2. Navigate to the Server Directory:

    cd server
  3. Create and Activate a Virtual Environment:

    python -m venv venv
    source venv/bin/activate  # On Windows, use: .\venv\Scripts\activate
  4. Install Required Python Packages:

    pip install -r requirements.txt
  5. Configure Environment Variables: Create a .env file 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
  6. Run the Flask Server:

    python app.py

Running ChainLit for Chatbots

  1. Open new Terminal and Navigate to the Document Drafting Chatbot Directory:

    cd chatbots/document_drafting
  2. Run ChainLit for Document Drafting:

    chainlit run -w ./document_drafting.py --port 8001
  3. Open new Terminal and Navigate to the Lawbot Chatbot Directory:

    cd chatbots/lawbot
  4. Run ChainLit for Lawbot:

    chainlit run -w ./lawbot.py --port 8002
  5. Open new Terminal and Navigate to the Document Summary Chatbot Directory:

    cd chatbots/document_sum
  6. Run ChainLit for Document Summarization:

    chainlit run -w ./document_sum.py --port 8003
  7. Open new Terminal and Navigate to the Narrative Legalism Chatbot Directory:

    cd chatbots/narrative_legalism
  8. Run ChainLit for Narrative Legalism:

    chainlit run -w ./narrative_legalism.py --port 8004

Technology Stack

  • Frontend: React + Vite + TypeScript
  • Backend: Flask, ChainLit
  • Database: SQLite
  • APIs: OpenAI, Pinecone, Hugging Face

Contributors

  • Aditya Shah - adityashah841
  • Devang Shah - Devang-Shah-49
  • Hastansh Pandit - Hastansh12
  • Meet Vasa - Meet3456

About

Where Legal Empowerment meets Generative AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •