llamaIndex - 💡(How to fix) Fix Community use case: Kenya civic RAG — querying government datasets in plain language

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Community use case — LlamaIndex deployed for civic accountability in East Africa.

What was built

KenyaRAG — a retrieval-augmented generation system over Kenya's published civic datasets.

Query parliament records, county budgets, SACCO data, and rights documents in plain language:

  • "Which counties had the lowest development fund absorption in FY 2022/23?"
  • "Which MPs have voted against the Finance Bill?"
  • "What are the CDF allocations for Westlands constituency?"

Why LlamaIndex

Kenya's public data is published but not queryable. PDFs, spreadsheets, and government portals exist — but no unified interface. LlamaIndex's document loaders and vector retrieval make grounded, cited answers possible from public CSVs.

Data

Built on our published civic dataset (DOI: 10.34740/kaggle/dsv/15473045 / 10.57967/hf/8223):

  • Parliamentary bills, MP records, CDF utilisation
  • 46 county budgets (Controller of Budget)
  • SACCO registry (SASRA)

Stack

  • LlamaIndex VectorStoreIndex + query engine
  • Claude Haiku / GPT-4o-mini as LLM
  • Streamlit frontend
  • CC BY-NC-ND 4.0

Full portfolio: https://gabrielmahia.github.io

Happy to contribute a cookbook entry on civic data RAG patterns for LlamaIndex documentation.

extent analysis

TL;DR

The issue lacks a clear problem statement, but a potential next step is to review the LlamaIndex documentation and existing community resources for guidance on implementing a retrieval-augmented generation system.

Guidance

  • Review the LlamaIndex documentation and community resources for examples of similar use cases and potential solutions.
  • Explore the provided dataset and code repositories (e.g., KenyaRAG, LlamaIndex) to understand the existing implementation and identify potential areas for improvement.
  • Consider reaching out to the LlamaIndex community or the creator of the KenyaRAG project for guidance on implementing a retrieval-augmented generation system for civic data.

Notes

The issue appears to be more of a showcase of a project rather than a specific problem statement, making it challenging to provide a direct solution. Further clarification on the issue or problem being faced would be necessary to provide more targeted guidance.

Recommendation

Apply workaround: Review existing documentation and community resources to identify potential solutions or guidance on implementing a retrieval-augmented generation system.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING