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

 
 
 

Contributors

Languages

  • Python 100.0%