Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

gabrielmahia/kenya-legal-rag

Domain:

natural language processing

Record type:

softwaretools
Creator:
gab
Host:
⚖️ RAG system over Kenya legal documents — query the Constitution, Employment Act, Land Act, and Companies Act in Swahili # ⚖️ Kenya Legal RAG Retrieval-Augmented Generation (RAG) system over Kenya's key legal documents. Query the Constitution of Kenya, Employment Act, Land Act, Companies Act, and more — in English or Swahili. ## Research Basis Built on the cross-lingual RAG framework methodology (arXiv:2601.02065) and validated against multilingual legal RAG approaches (IEEE Access, RAG in Legal Technology Survey, 2025). The Swahili benchmarking study (arXiv:2509.04516) confirms native-language retrieval produces substantially fewer errors. ## Legal Documents Covered | Document | Coverage | |----------|----------| | Constitution of Kenya 2010 | Full text, all articles | | Employment Act (Cap. 226) | Employee rights, contracts, termination | | Land Act 2012 | Land tenure, registration, disputes | | Companies Act 2015 | Business registration, compliance | | Consumer Protection Act | Consumer rights, remedies | | Data Protection Act 2019 | Privacy rights, obligations | ## Usage ```python from kenya_legal_rag import KenyaLegalRAG rag = KenyaLegalRAG() # Query in English result = rag.query("What are an employee's rights when dismissed without notice?") # Query in Swahili result = rag.query("Je, mfanyakazi ana haki gani anapofukuzwa kazi bila notisi?") print(result.answer) print(result.sources) ``` ## MCP Server ```bash uvx kenya-legal-rag # or pip install kenya-legal-rag kenya-legal-rag ``` ## Install ```bash pip install kenya-legal-rag ``` ## Part of the East Africa Civic Tech Portfolio See also: mpesa-mcp | civic-agent-kit ## Disclaimer Legal information only. Not legal advice. Consult a qualified advocate for legal matters. ## IP & Collaboration MIT licensed. Feedback via GitHub Issues only — pull requests are not accepted. Full policy: docs/architecture/IP_POLICY.md. Security reports: see SECURITY.md.

Visit

github.com

Languages

LusengoSwahili

Tags

kenyalegalllmopen-sourceragswahili

Licenses

MIT

Similar

gabrielmahia/kenya-raghizkyas/hagersearch-legal-RAGyahyamed84/Mauritania-legal-RAGnahomWM/Ethiopian-Legal-Answer-RAGmohamedamine050/Tunisian-Legal-Assistant--RAGProfessorAbraham/Amharic-Legal-RAG-Sentiment

gabrielmahia/kenya-rag

KenyaRAG — LlamaIndex RAG system for Kenya civic data. Natural language queries over parliament, bud

hizkyas/hagersearch-legal-RAG

Hager-Search is a professional, cross-lingual RAG system for Ethiopian legal documents. It provides

yahyamed84/Mauritania-legal-RAG

Legal chatbot for Mauritania using Django, Gemini API, and local RAG with GGUF models. Enables smart

nahomWM/Ethiopian-Legal-Answer-RAG

A high-performance Retrieval-Augmented Generation (RAG) system designed specifically for Ethiopian l

mohamedamine050/Tunisian-Legal-Assistant--RAG

# 🏛️ Tunisian Legal Assistant - RAG Un assistant juridique intelligent utilisant la technologie RAG

ProfessorAbraham/Amharic-Legal-RAG-Sentiment

Amharic Legal RAG + Sentiment Analysis pipeline for Ethiopian legal documents and complaints. Built