Spaces:
Configuration error
Configuration error
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,10 +1,101 @@
|
|
| 1 |
-
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: AmaniQuery
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
+
pinned: true
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
<div align="center">
|
| 10 |
+
|
| 11 |
+
# π AmaniQuery
|
| 12 |
+
|
| 13 |
+
**AI-Powered Legal & Policy Research Assistant for Kenya**
|
| 14 |
+
|
| 15 |
+
[](https://huggingface.co/spaces/AmaniQuery/amaniquery-backend)
|
| 16 |
+
[](https://huggingface.co/spaces/AmaniQuery/amaniquery-vibevoice)
|
| 17 |
+
[](https://huggingface.co/spaces/AmaniQuery/amaniquery-weknora)
|
| 18 |
+
|
| 19 |
+
</div>
|
| 20 |
+
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
## π― What is AmaniQuery?
|
| 24 |
+
|
| 25 |
+
AmaniQuery is a **RAG-powered research platform** that makes Kenyan legal documents, parliamentary proceedings, and policy information accessible through natural language queries.
|
| 26 |
+
|
| 27 |
+
### β¨ Features
|
| 28 |
+
|
| 29 |
+
- π **Intelligent Search** - Query laws, bills, and parliamentary hansards using natural language
|
| 30 |
+
- π€ **AI-Powered Answers** - Get synthesized responses with source citations
|
| 31 |
+
- π€ **Voice Interface** - Ask questions and get spoken responses
|
| 32 |
+
- π **Document Processing** - Upload and analyze legal documents
|
| 33 |
+
- π **Research Reports** - Generate comprehensive research summaries
|
| 34 |
+
- π **Secure API** - JWT authentication for enterprise use
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
## π Our Spaces
|
| 39 |
+
|
| 40 |
+
| Space | Description | Status |
|
| 41 |
+
|-------|-------------|--------|
|
| 42 |
+
| [**amaniquery-backend**](https://huggingface.co/spaces/AmaniQuery/amaniquery-backend) | Main FastAPI backend with RAG pipeline | π’ Active |
|
| 43 |
+
| [**amaniquery-vibevoice**](https://huggingface.co/spaces/AmaniQuery/amaniquery-vibevoice) | Text-to-Speech service using Microsoft VibeVoice | π’ Active |
|
| 44 |
+
| [**amaniquery-weknora**](https://huggingface.co/spaces/AmaniQuery/amaniquery-weknora) | Document processing & knowledge base management | π’ Active |
|
| 45 |
+
|
| 46 |
+
---
|
| 47 |
+
|
| 48 |
+
## π οΈ Technology Stack
|
| 49 |
+
|
| 50 |
+
```
|
| 51 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 52 |
+
β AmaniQuery β
|
| 53 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
|
| 54 |
+
β π Backend β FastAPI + LangGraph + RAG Pipeline β
|
| 55 |
+
β π€ Voice β Microsoft VibeVoice TTS β
|
| 56 |
+
β π Documents β WeKnora (Tencent RAG Framework) β
|
| 57 |
+
β π§ LLM β Moonshot / Gemini / OpenAI β
|
| 58 |
+
β π Vector Store β Qdrant / Upstash β
|
| 59 |
+
β ποΈ Database β PostgreSQL β
|
| 60 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
---
|
| 64 |
+
|
| 65 |
+
## π API Usage
|
| 66 |
+
|
| 67 |
+
### Query the Knowledge Base
|
| 68 |
+
```bash
|
| 69 |
+
curl -X POST https://amaniquery-backend.hf.space/api/v1/query \
|
| 70 |
+
-H "Content-Type: application/json" \
|
| 71 |
+
-d '{"query": "What does the Kenya Constitution say about land rights?"}'
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
### Text-to-Speech
|
| 75 |
+
```bash
|
| 76 |
+
curl -X POST https://amaniquery-vibevoice.hf.space/api/v1/voice/speak \
|
| 77 |
+
-H "Content-Type: application/json" \
|
| 78 |
+
-d '{"text": "Hello from AmaniQuery", "voice": "Wayne"}'
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
---
|
| 82 |
+
|
| 83 |
+
## π€ Contributing
|
| 84 |
+
|
| 85 |
+
We welcome contributions! Check out our [GitHub repository](https://github.com/AmaniQuery/amaniquery) to get started.
|
| 86 |
+
|
| 87 |
+
---
|
| 88 |
+
|
| 89 |
+
## π License
|
| 90 |
+
|
| 91 |
+
MIT License - See [LICENSE](https://github.com/AmaniQuery/amaniquery/blob/master/LICENSE) for details.
|
| 92 |
+
|
| 93 |
+
---
|
| 94 |
+
|
| 95 |
+
<div align="center">
|
| 96 |
+
|
| 97 |
+
**Made with β€οΈ for Kenya**
|
| 98 |
+
|
| 99 |
+
*Empowering citizens with accessible legal information*
|
| 100 |
+
|
| 101 |
+
</div>
|