Who it is forA law student or policy researcher who needs a quick, page-cited answer about a Constitution of Pakistan article, in English or Urdu.
The problemFinding the right article and page in a long constitutional text takes time, and a general chatbot may invent an answer without a source.
The outcomeA running local web demo where each answer shows its status, its language, the answer text, and a [Source: Constitution.pdf p.X] citation, or says insufficient evidence.
What you need first
- Python installed (the README lists Python 3.14)
- Ability to clone the GitHub repository and run commands in a terminal
- Internet access for the first download of the sentence-transformers embedding model (inferred from the model being loaded by name)
- Constitution of Pakistan PDFs or the committed data files for the demo and evaluation
Steps
- Clone https://github.com/salikhussain71-code/PAKGOV-RAG-project and open the project folder.
- Run
pip install streamlit sentence-transformers faiss-cpu rank_bm25. - Run
python -m streamlit run app/demo/app.py --server.port 8501. - Open http://localhost:8501 in a browser.
- Ask
What is Right to Information?, thenArticle 19A, thenآرٹیکل 19 اے کیا ہے؟and check each result's citation.
Prompt for your agent
Clone the repo salikhussain71-code/PAKGOV-RAG-project, install its demo requirements, and start app/demo/app.py on port 8501. Ask the demo the question <question in English or Urdu> and report the answer, its status, and its [Source: Constitution.pdf p.X] citation. Verify that the cited page actually contains the answer text before reporting it.
Caveat. The README reports that 13 of 50 evaluation questions missed at R@5, so some questions will return insufficient evidence even when the Constitution covers them.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for salikhussain71-code/PAKGOV-RAG-project and "Ask Constitution questions and get cited answers"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer