Project Details
PakKnowledge AI
LangGraph-Powered RAG Chatbot
Project Overview
PakKnowledge AI is a Pakistan-focused AI chatbot that uses Retrieval-Augmented Generation (RAG) to answer questions about Pakistan using information from an indexed knowledge base.
Problem Statement
General-purpose AI chatbots may provide irrelevant, outdated, or unsupported information when answering questions about Pakistan-specific topics.
Solution
Built a RAG-based chatbot that retrieves relevant information from trusted indexed documents and generates context-grounded answers with source citations. It also handles unrelated questions and abstains when sufficient evidence is unavailable.
Key Features
- Pakistan-focused question answering across multiple knowledge domains.
- Semantic search using ChromaDB.
- Evidence verification before answer generation.
- Source citations for traceability.
- Out-of-scope question handling and unsupported-answer abstention.
- Interactive Streamlit interface.
Challenges & Solutions
- Retrieval relevance: Improved document preparation and chunking to help retrieve useful context.
- Unsupported answers: Added evidence verification and abstention to reduce hallucinations.
- Workflow management: Used LangGraph to organize classification, retrieval, verification, and answer generation into a structured workflow.
- Deployment: Deployed on Streamlit Community Cloud and configured API credentials securely through deployment secrets.
My Contribution
Independently designed and developed the project, including document ingestion, vector database setup, RAG pipeline, LangGraph workflow, chatbot interface, testing, and cloud deployment.
Results & Impact
Successfully developed and deployed a working Pakistan-focused RAG chatbot with source-grounded responses, citations, and evidence-based abstention.
Live Demo: https://pakknowledge-ai.streamlit.app/
GitHub: https://github.com/Muntazir-43/PakKnowledge-AI
Future Improvements
- Add website and URL-based knowledge ingestion.
- Improve retrieval ranking and answer relevance.
- Expand the knowledge base with more official and up-to-date sources.
- Introduce automated evaluation for retrieval and answer quality.
Tech Stack
Technologies
Project Type
AI ChatbotsClient
Myself