DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to ask Constitution questions and get cited answers with PAKGOV RAG Project

Run the local demo and ask questions in English or Urdu, getting answers that cite the source page.

Short answer: Clone https://github.com/salikhussain71-code/PAKGOV-RAG-project and open the project folder; then run pip install streamlit sentence-transformers faiss-cpu rank_bm25; run python -m streamlit run app/demo/app.py --server.port 8501. All steps.

  • Top pick
  • Research
  • Intermediate
  • 45 minutes
  • From the README
  • Any agent

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

  1. Clone https://github.com/salikhussain71-code/PAKGOV-RAG-project and open the project folder.
  2. Run pip install streamlit sentence-transformers faiss-cpu rank_bm25.
  3. Run python -m streamlit run app/demo/app.py --server.port 8501.
  4. Open http://localhost:8501 in a browser.
  5. Ask What is Right to Information?, then Article 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer