Skip to content

nyAIy/RAG-Implementation-NyAIy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Legal Document RAG Assistant

A Python-based legal document chatbot using RAG (Retrieval Augmented Generation) to provide easy-to-understand explanations of legal documents.

Features

  • IPC (Indian Penal Code) mode with persistent document storage
  • Custom PDF document support with document caching
  • Conversational memory maintains context across questions
  • Uses Llama3-70B through Groq API for high-quality responses
  • ChromaDB for efficient document storage and retrieval
  • Streamlit-based user interface

Setup

# Create virtual environment
python -m venv env
source env/bin/activate

# Install dependencies 
pip install -r requirements.txt

# Add GROQ API key to .streamlit/secrets.toml
# Place IPC_pdf.pdf in project root
streamlit run app.py

About

First Prototype of NyAIy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages