Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

AI Legal/Govt Assistant for the Common Man. India has complex government schemes and legal documents that the average person cannot understand.

Notifications You must be signed in to change notification settings

CodeLander07/Civic-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

17 Commits

Repository files navigation

Civic-AI: Bridging the Gap Between Citizens and Government ๐Ÿ‡ฎ๐Ÿ‡ณ

Civic-AI Banner

Civic-AI is an intelligent, multilingual assistant designed to demystify government schemes, legal notices, and public services for every Indian citizen. By leveraging advanced AI and OCR technology, it breaks down complex bureaucratic language into simple, actionable insights in local languages.


๐Ÿš€ Key Features

  • ๐Ÿค– AI-Powered Simplification: Instantly translates complex government jargon into simple, easy-to-understand language.

  • ๐Ÿ“„ Document Analysis (OCR): Upload photos of notices or forms to get instant summaries and action items.

    OCR Process

  • ๐Ÿ—ฃ๏ธ Multilingual Support: Interacts in English, Hindi, Marathi, Bengali, Tamil, Telugu, and more.

  • ๐Ÿ›ก๏ธ Smart Fallback System: Ensures users get critical information about schemes (like PM Kisan, Ayushman Bharat) even when AI services are offline.

  • ๐Ÿ”’ Secure & Private: Built with enterprise-grade authentication and row-level security.


๐Ÿ› ๏ธ Tech Stack

Frontend (Client)

  • Framework: Next.js 15 (App Router)
  • Styling: Tailwind CSS
  • State Management: React Context API
  • HTTP Client: Axios

Backend (Server)


๐Ÿ“‚ Repository Structure

root/
โ”œโ”€โ”€ client/ # Frontend Application
โ”‚ โ”œโ”€โ”€ app/ # Next.js Pages & Routes
โ”‚ โ”œโ”€โ”€ components/ # Reusable UI Components
โ”‚ โ”œโ”€โ”€ lib/ # API Clients & Utilities
โ”‚ โ””โ”€โ”€ contexts/ # Auth & Global State
โ”‚
โ”œโ”€โ”€ server/ # Backend API Service
โ”‚ โ”œโ”€โ”€ main.py # Application Entry Point & Routes
โ”‚ โ”œโ”€โ”€ fallbacks.py # Offline Content & Logic
โ”‚ โ””โ”€โ”€ requirements.txt # Python Dependencies
โ”‚
โ””โ”€โ”€ kiro/ # Project Documentation & Design
 โ”œโ”€โ”€ architecture.md # System Design
 โ”œโ”€โ”€ problem.md # Problem Statement
 โ””โ”€โ”€ solution.md # Solution Overview

โšก Getting Started

Prerequisites

  • Node.js 18+
  • Python 3.10+
  • Supabase Account
  • Google Gemini API Key

1. Clone the Repository

git clone https://github.com/yourusername/civic-ai.git
cd civic-ai

2. Backend Setup

cd server
python -m venv venv
# Windows
.\venv\Scripts\activate
# Mac/Linux
source venv/bin/activate
pip install -r requirements.txt

Create a .env file in server/:

SUPABASE_URL=your_supabase_url
SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
GEMINI_API_KEY=your_gemini_key

Run the server:

uvicorn main:app --reload

3. Frontend Setup

cd client
npm install

Create a .env.local file in client/:

NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
NEXT_PUBLIC_API_URL=http://localhost:8000

Run the client:

npm run dev

Visit http://localhost:3000 to see the app in action.


๐ŸŒŸ Why Civic-AI?

Government services are often inaccessible due to:

  1. Complex Language: Legal and bureaucratic terms confuse citizens.
  2. Language Barriers: Most information is in English, excluding non-English speakers.
  3. Middlemen: Dependence on agents leads to misinformation and exploitation.

Civic-AI solves this by putting a personal government expert in every citizen's pocket.


๐Ÿ“ License

This project is licensed under the MIT License.

About

AI Legal/Govt Assistant for the Common Man. India has complex government schemes and legal documents that the average person cannot understand.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle ใซใ‚ˆใฃใฆๅค‰ๆ›ใ•ใ‚ŒใŸใƒšใƒผใ‚ธ (->ใ‚ชใƒชใ‚ธใƒŠใƒซ) /