metadata
title: Gov Env - Government Service Assistant
colorFrom: blue
colorTo: green
sdk: docker
app_file: server/app.py
pinned: false
๐ฎ๐ณ Government Service Application Assistant Environment
A production-quality OpenEnv environment that simulates an AI assistant helping users navigate Indian government service applications, with a focus on document validation and correction workflows.
๐ฏ Problem Statement & Motivation
The Challenge
Every year, ~1.3-1.4 crore (13-14 million) Indian citizens apply for passports alone. With 138+ crore Aadhaar holders and 2.5-3 crore PAN applications, the scale is massive.
The Pain Point
70-80% of government service rejections are due to:
- Document confusion and missing requirements
- Name mismatches across documents
- Invalid or expired proof documents
Our Solution
An AI agent environment that trains models to:
- Identify required documents for any government service
- Validate submitted documents for completeness and validity
- Suggest corrections for rejected applications
๐ Action Space
{
"action_type": "validate_documents",
"service_type": "passport_new",
"documents": [{"type": "Aadhaar Card", "details": "Valid"}]
}
| Action | Description |
|---|---|
select_service |
Choose a government service |
list_required_documents |
Get document requirements |
validate_documents |
Check submitted documents |
suggest_corrections |
Get fix suggestions |
submit_application |
Finalize application |
๐ Task Descriptions
| Task ID | Difficulty | Description | Optimal Steps |
|---|---|---|---|
passport_new_easy |
Easy | Identify required documents | 2 |
passport_new_medium |
Medium | Validate submitted docs | 3 |
passport_new_hard |
Hard | Fix incorrect application | 4 |
๐ฐ Grading System
- Range: [0.0, 1.0]
- Deterministic: Same input โ same output
- Components: Document accuracy (0-0.3) + Validation quality (0-0.3) + Efficiency (+/- 0.1)
๐ Endpoints
| Endpoint | Method | Description |
|---|---|---|
/reset |
POST | Initialize environment |
/step |
POST | Execute action |
/state |
GET | Get current state |
/tasks |
GET | Get available tasks |
/health |
GET | Health check |
๐ค Running Inference
export HF_TOKEN=your_groq_api_key
export ENV_URL=https://dharunkkk-gov-env.hf.space
python3 inference.py passport_new_easy
Output Format
[START] task=passport_new_easy env=gov_env model=llama-3.3-70b-versatile
[STEP] step=1 action=... reward=1.00 done=false
[END] success=true steps=10 score=10.00
โ Validation Checklist
- HF Space deploys (HTTP 200)
- OpenEnv spec compliance
- Dockerfile builds
- Baseline runs without errors
- 3+ tasks with graders
- Grader outputs in [0.0, 1.0]
๐ Project Structure
โโโ inference.py
โโโ Dockerfile
โโโ requirements.txt
โโโ openenv.yaml
โโโ models.py
โโโ tasks.py
โโโ grader.py
โโโ client.py
โโโ server/
โโโ app.py
โโโ gov_env_environment.py
Live Space: https://dharunkkk-gov-env.hf.space