Skip to content

Latest commit

Β 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

header Typing SVG

Hugging Face Space

Python

Flask

License

Status QA Pairs Languages Deployment



⚑ What is This?

WAPDA MDC AI Assistant is a professional-grade, bilingual AI console built to help field staff and consumers navigate Meter Data Control (MDC) and WAPDA operations instantly β€” day or night, in whichever language they think in.

Developed by Ayesha Javid, it replaces slow manual lookups with a single conversational interface that understands English, Urdu script, and Roman Urdu equally well.

πŸ’¬ "Ask like you'd ask a colleague β€” get answered like an expert."

   ⚑ User Query
        β”‚
        β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚ Language     β”‚
  β”‚ Detection    β”‚
  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
         β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚ 160+ Q&A     β”‚
  β”‚ Knowledge DB β”‚
  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
         β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚ Smart Reply  β”‚
  β”‚  + Suggest   β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

🌟 Feature Grid

Category What It Does
🧠 Intelligent Core
  • Enterprise knowledge base with 160+ specialized Q&A pairs across WAPDA, MEPCO, LESCO & more
  • Smart Filter flags off-topic / irrelevant questions automatically
  • Auto-Suggest β€” live, character-by-character A–Z query filtering
🌍 Multi-Lingual Engine
  • English β€” full technical + conversational support
  • Urdu Script β€” native understanding of Ω…ΫŒΩΉΨ±ΨŒ Ψ¨Ψ¬Ω„ΫŒΨŒ Ψ¨Ω„
  • Roman Urdu β€” casual phrasing like "MDC ka matlab kia hai?"
🎨 Cinematic UI
  • ChatGPT/Claude-style enterprise layout with avatars
  • Neon Dark Mode for glare-free field use
  • Glitch-effect titles + laser-scan init animation
  • Persistent sidebar with quick-action chips
πŸ’Ύ Persistence
  • Session memory β€” last 20 messages retained per session
  • Recents list for one-click access to prior queries

πŸ—ΊοΈ How a Query Flows Through the System

flowchart TD
    A[πŸ‘€ User types a question] --> B{🌍 Language Detected}
    B -->|English| C[NLP Match Engine]
    B -->|Urdu Script| C
    B -->|Roman Urdu| C
    C --> D{πŸ“š Match found in 160+ Q&A?}
    D -->|βœ… Yes| E[⚑ Instant Answer Returned]
    D -->|❌ No| F[🚨 Smart Filter: Irrelevant Alert]
    E --> G[πŸ’Ύ Saved to Session Memory]
    F --> G
    G --> H[πŸ“‹ Recents Sidebar Updated]
Loading

πŸ†š Language Support at a Glance

Language Example Query Understood?
πŸ‡¬πŸ‡§ English "What is MDC in WAPDA billing?" βœ…
πŸ‡΅πŸ‡° Urdu (Script) "Ω…ΫŒΩΉΨ± Ψ±ΫŒΪˆΩ†Ϊ― Ϊ©ΫŒΨ³Ϋ’ Ϊ†ΫŒΪ© کریں؟" βœ…
πŸ—£οΈ Roman Urdu "Bill ziyada q aya hai?" βœ…
❓ Off-topic "What's the weather today?" 🚨 Flagged as irrelevant

πŸ› οΈ Tech Stack

Python Flask HTML5 CSS3 JavaScript Docker

Layer Technology Role
βš™οΈ Backend Python 3.9 & Flask API logic, query matching, session control
🎨 Frontend Vanilla HTML5, CSS3 (Glassmorphism), JavaScript (ES6+) Cinematic chat console UI
πŸ’Ύ Session Layer Flask-Session Per-user chat memory (last 20 messages)
☁️ Deployment Hugging Face Spaces (Dockerized) Live, always-on hosting

▢️ Getting Started

πŸ’» Click to expand: Run it locally

1. Clone the repository

git clone https://github.com/ayeshajavid91-star/wapda-chatbot.git
cd wapda-chatbot

2. Install dependencies

pip install -r requirements.txt

3. Run the console

python app.py

4. Open in browser

http://localhost:5000
🐳 Click to expand: Run with Docker
docker build -t wapda-mdc-assistant .
docker run -p 5000:5000 wapda-mdc-assistant

πŸ“‚ Project Structure

wapda-chatbot/
β”‚
β”œβ”€β”€ βš™οΈ  app.py                 β†’ Core AI logic & API endpoints
β”œβ”€β”€ 🎨 templates/
β”‚    └── index.html            β†’ Enterprise chat console UI
β”œβ”€β”€ πŸ“š qa_database.json         β†’ 160+ question knowledge base
β”œβ”€β”€ πŸ“¦ requirements.txt         β†’ System dependencies
β”œβ”€β”€ 🐳 Dockerfile               β†’ Hugging Face deployment config
└── πŸ“˜ README.md

🏷️ GitHub Topics

python flask chatbot ai-assistant nlp bilingual-chatbot


πŸ—ΊοΈ Roadmap

  • 160+ Q&A knowledge base
  • English / Urdu / Roman Urdu support
  • Smart irrelevant-query filter
  • Session memory (last 20 messages)
  • Voice input for field staff
  • Admin panel to expand the Q&A database
  • SMS/WhatsApp integration for offline consumers

πŸ‘©β€πŸ’» Developed By

Ayesha Javid

System Engineer & AI Developer Specializing in Utility Management AI Solutions

Email GitHub


πŸ“„ License

All Rights Reserved.

This project and its source code are the intellectual property of the author. No part of this repository β€” including the code, design, or documentation β€” may be copied, modified, distributed, used, or reproduced in any form without the explicit written permission of the author.

Β© 2026 Ayesha Javid. Unauthorized use is strictly prohibited.

For permissions or licensing inquiries, contact: ayeshajavid91@gmail.com


⚑ "Empowering WAPDA with Intelligence." ⚑

About

⚑ WAPDA MDC AI Assistant πŸ€– β€œSmart. Secure. AI-Powered.” 🌍 Bilingual Genius: Speaks English, Urdu, & Roman Urdu! 🧠 Expert Brain: 160+ WAPDA technical solutions built-in. 🎨 Next-Gen UI: Cinematic Neon Console with real-time history. πŸš€ Built for the Future: Empowering WAPDA with Intelligence! Developed by Ayesha Javid ✨

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages