Spaces:
Configuration error
Configuration error
| title: AmaniQuery | |
| emoji: π | |
| colorFrom: blue | |
| colorTo: green | |
| pinned: true | |
| <div align="center"> | |
| # π AmaniQuery | |
| **AI-Powered Legal & Policy Research Assistant for Kenya** | |
| [](https://huggingface.co/spaces/AmaniQuery/amaniquery-backend) | |
| [](https://huggingface.co/spaces/AmaniQuery/amaniquery-vibevoice) | |
| [](https://huggingface.co/spaces/AmaniQuery/amaniquery-weknora) | |
| </div> | |
| --- | |
| ## π― What is AmaniQuery? | |
| AmaniQuery is a **RAG-powered research platform** that makes Kenyan legal documents, parliamentary proceedings, and policy information accessible through natural language queries. | |
| ### β¨ Features | |
| - π **Intelligent Search** - Query laws, bills, and parliamentary hansards using natural language | |
| - π€ **AI-Powered Answers** - Get synthesized responses with source citations | |
| - π€ **Voice Interface** - Ask questions and get spoken responses | |
| - π **Document Processing** - Upload and analyze legal documents | |
| - π **Research Reports** - Generate comprehensive research summaries | |
| - π **Secure API** - JWT authentication for enterprise use | |
| --- | |
| ## π οΈ Technology Stack | |
| ``` | |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| β AmaniQuery β | |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ | |
| β π Backend β FastAPI + LangGraph + RAG Pipeline β | |
| β π€ Voice β Microsoft VibeVoice TTS β | |
| β π Documents β WeKnora (Tencent RAG Framework) β | |
| β π§ LLM β Moonshot / Gemini / OpenAI β | |
| β π Vector Store β Qdrant / Upstash β | |
| β ποΈ Database β PostgreSQL β | |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| ``` | |
| --- | |
| ## π API Usage | |
| ### Query the Knowledge Base | |
| ```bash | |
| curl -X POST https://amaniquery-backend.hf.space/api/v1/query \ | |
| -H "Content-Type: application/json" \ | |
| -d '{"query": "What does the Kenya Constitution say about land rights?"}' | |
| ``` | |
| ### Text-to-Speech | |
| ```bash | |
| curl -X POST https://amaniquery-vibevoice.hf.space/api/v1/voice/speak \ | |
| -H "Content-Type: application/json" \ | |
| -d '{"text": "Hello from AmaniQuery", "voice": "Wayne"}' | |
| ``` | |
| --- | |
| ## π€ Contributing | |
| We welcome contributions! Check out our [GitHub repository](https://github.com/AmaniQuery/amaniquery) to get started. | |
| --- | |
| ## π License | |
| MIT License - See [LICENSE](https://github.com/AmaniQuery/amaniquery/blob/master/LICENSE) for details. | |
| --- | |
| <div align="center"> | |
| **Made with β€οΈ for Kenya** | |
| *Empowering citizens with accessible legal information* | |
| </div> | |