Skip to content

Satark AI is an AI-powered legal assistant designed to streamline law enforcement and legal workflows. By leveraging Retrieval-Augmented Generation (RAG) and Gen AI, Satark AI delivers real-time legal insights, case analysis, document automation, and crime pattern detection.

Notifications You must be signed in to change notification settings

iamratinder/Satark-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Satark AI 🔍

Git Repo Cover

🔍 For Users: Stay Alert, Stay Ahead.
⚖️ For Enforcement Forces: Smart Policing, Swift Justice.

Overview

Satark AI is an AI-powered legal assistant designed to streamline law enforcement and legal workflows. By leveraging Retrieval-Augmented Generation (RAG) and Gen AI, Satark AI delivers real-time legal insights, case analysis, document automation, and crime pattern detection.

Demo & Links

Table of Contents

Objective

To enhance efficiency for police officers, lawyers, and legal professionals by providing AI-powered legal research, automated document drafting, and predictive crime analysis.

Target Users

  • Police Officers: Case analysis, FIR retrieval, crime pattern detection
  • Lawyers & Legal Professionals: Legal research, document drafting, case law retrieval
  • Common Citizens (Mobile App): Legal knowledge and guidance

Features

1️⃣ Vivad Mitra – Case-Based Prediction & Investigation Tool

AI-powered legal insights with pattern recognition capabilities to predict case outcomes and provide procedural clarity.

  • Pattern Recognition: Analyzes previous FIRs to identify similar cases and predict outcomes
  • Comprehensive Integration: Built-in knowledge of IPC, CrPC, Evidence Act, and regional laws
  • Procedural Guidance: Step-by-step legal process recommendations for various scenarios

2️⃣ Kanoon Patr – AI-Powered Legal Document Generation

Automates the drafting of legal documents like FIRs, charge sheets, affidavits, and case summaries.

  • Smart Templates: AI fills legally approved formats with case-specific details
  • Context-Aware Adjustments: Ensures compliance with latest amendments
  • Auto-Suggest: Retrieves similar case judgments and their potential impact
  • Multi-language Support: Documents available in English, Hindi, and regional languages

3️⃣ Nyay Darpan – Live Legal Knowledge Retrieval

Real-time legal updates, case law retrieval, and statute interpretation.

  • Dynamic Database: Syncs with Indian legal portals for up-to-date information
  • Natural Language Querying: Ask legal questions in plain English or Hindi
  • Contextual Search: Fetches precise legal documents and relevant case laws

4️⃣ Suraksha Setu – Emergency Management & Riot Control

Detects emerging crime trends, high-risk areas, and aids strategic law enforcement planning.

  • Real-Time Monitoring: Data integration from surveillance cameras and police reports
  • Strategic Planning: AI-guided decision-making for resource deployment
  • Geo Mapping: Creates safe zones, plans emergency routes, and tracks critical locations
  • Misinformation Control: Monitors social media to flag fake news

5️⃣ Insaaf Buddy – Legal Help for Common Citizens (Mobile App)

Empowers citizens with accessible legal knowledge and AI-driven assistance.

  • AI-Powered Queries: Answer legal questions anytime, anywhere
  • Voice Search: Speak queries for easy access
  • Rights Education: Information on laws, constitutional rights, and legal helplines

Tech Stack

Frontend & Design

React Vite JavaScript TailwindCSS Lucide Lottie

Backend & API

Python FastAPI Express.js Node.js Uvicorn

Machine Learning & Data Science

NumPy Pandas Seaborn Matplotlib scikit-learn Pickle

AI & Analytics

LangChain Gemini Jupyter OpenAI Groq

Development & Deployment Tools

Okta Auth0 Axios Postman Vercel FastAPI Render GitHub Notion

Architecture

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│                 │     │                 │     │                 │
│  React Frontend │────▶│  Node.js API    │────▶│  RAG Engine     │
│                 │◀────│                 │◀────│                 │
└─────────────────┘     └─────────────────┘     └─────────────────┘
                                │                       │
                                ▼                       ▼
                        ┌─────────────────┐    ┌─────────────────┐
                        │                 │    │                 │
                        │  MongoDB        │    │  Vector DB      │
                        │  (User Data)    │    │  (Response)     │
                        │                 │    │                 │
                        └─────────────────┘    └─────────────────┘

Installation & Setup

Prerequisites

  • Node.js v18+
  • Python 3.9+
  • MongoDB
  • npm or yarn

Client Setup

# Navigate to client directory
cd client

# Install dependencies
npm install

# Start development server
npm run dev

Server Setup

# Navigate to server directory
cd server

# Install dependencies
npm install

# Start server
npm start

RAG Engine Setup

# Navigate to rag directory
cd rag

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Start RAG engine
python main.py

Screenshots

Screenshot 2025-02-22 at 2 31 15 AM Screenshot 2025-02-22 at 2 31 23 AM
Screenshot 2025-02-22 at 2 31 38 AM Screenshot 2025-02-22 at 2 31 48 AM

Team


🚀 Satark AI – Transforming Legal Workflows with AI-Powered Insights! 🚀

About

Satark AI is an AI-powered legal assistant designed to streamline law enforcement and legal workflows. By leveraging Retrieval-Augmented Generation (RAG) and Gen AI, Satark AI delivers real-time legal insights, case analysis, document automation, and crime pattern detection.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •