Skip to content

abshek7/LawAI

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LawAI

GenAI Legal Research Assistant specialized by Chain of AI Agents

AI can still hallucinate so, use it as Google not a Lawyer

Packages Used πŸ’»

  • Python 🐍
  • PyPDF2 πŸ“„
  • LangChain πŸ”—
  • Google Generative AI 🌐
  • FAISS πŸ”
  • Streamlit 🌟

Features ✨

  • πŸ’¬ Conversational AI: Get answers to your legal questions through a natural, conversational interface.
  • 🌐 Streamlit Interface: Interactive web app for seamless user experience.

How It Works πŸ”

  1. Ingest Data:

    • Extract text from PDF files located in the dataset folder.
    • Split the text into chunks for better processing.
    • Create a FAISS vector store with embeddings for efficient searches.
  2. Ask Questions:

    • Type your legal questions in the chat interface.
    • Lawy uses the vector store to find relevant documents.
    • Get accurate and context-aware legal advice based on Indian laws.

Setup πŸ› οΈ

  1. Clone the repository:

    git clone https://github.com/bharathajjarapu/lawai.git
    cd lawai
  2. Install dependencies:

    pip install -r requirements.txt
  3. Set up environment variables:

    • Create a .env file in the project root.
    • Add your Groq API key:
      GROQ_API_KEY=your_api_key
      
  4. Run the application:

    python run ingest.py
    streamlit run app.py
  5. Interact with Lawy:

    • Type your legal questions in the chat input.
    • LawAI will provide answers based on the context and Indian laws.

Made with πŸ’‘& ❀️ by Spoorthik06

About

GenAI Legal Research Assistant specialized by Chain of AI Agents

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%