📌 Legal Case Manager & RAG System
A powerful web application that combines a Legal Case Manager and a Retrieval-Augmented Generation (RAG) System to streamline legal case management and document analysis. Built using React.js, Flask, and MongoDB, this tool helps legal professionals organize cases, search case details, and leverage AI for legal document summarization and query answering. ⚖️📄
✨ Features
🗂️ Legal Case Manager
- Add, update, and manage legal cases 📑
- Search and filter cases 🔍
- View detailed case descriptions and images 🖼️ 🤖 RAG System
- Upload legal documents 📂
- Summarize documents using AI 🤯
- Ask legal queries based on document contents and get AI-generated responses 💡
🏗️ Tech Stack
🖥️ Frontend
- React.js ⚛️
- Framer Motion for animations 🎭
- Lucide Icons for UI enhancements 🎨
🖧 Backend
- Flask (Python) 🐍
- Flask-CORS for handling cross-origin requests 🔄
- MongoDB as the database 🛢️
- Axios for API requests 🚀
📥 Installation & Setup
🔄 Clone the Repository
git clone https://github.com/G2HackFest/Outliers.git
cd Outliers⚙️ Backend Setup (Flask API)
- Navigate to the backend folder:
cd backend - Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # Mac/Linux venv\Scripts\activate # Windows
- Install dependencies:
pip install -r requirements.txt
- Start the Flask server:
python app.py
🖥️ Frontend Setup (React)
- Navigate to the frontend folder:
cd frontend - Install dependencies:
npm install
- Start the React app:
npm start
🚀 Usage
- Open http://localhost:3000/ in your browser 🌐
- Switch between Legal Case Manager and RAG System using the navigation bar 🏛️
- Manage cases efficiently and analyze legal documents with AI-powered insights 🤖📜
📌 API Endpoints
Legal Case Manager
GET /cases- Fetch all casesPOST /cases/add- Add a new caseGET /cases/:id- Get details of a specific case
RAG System
POST /rag/process- Upload and process a documentPOST /rag/query- Get AI response to a legal query
💡 Future Enhancements
- User Authentication 🔐
- Role-Based Access Control ⚖️
- Advanced AI-based Legal Recommendations 🤯
- Cloud Storage for Documents ☁️
🤝 Contributing Feel free to submit issues and pull requests! 🚀
📝 License This project is licensed under the MIT License 📜.
For queries or contributions, reach out via GitHub Issues or Pull Requests! 💬