Spaces:
Configuration error
Configuration error
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,101 +1,92 @@
|
|
| 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-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 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
---
|
| 94 |
-
|
| 95 |
-
<div align="center">
|
| 96 |
-
|
| 97 |
-
**Made with β€οΈ for Kenya**
|
| 98 |
-
|
| 99 |
-
*Empowering citizens with accessible legal information*
|
| 100 |
-
|
| 101 |
-
</div>
|
|
|
|
| 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 |
+
|
| 39 |
+
## π οΈ Technology Stack
|
| 40 |
+
|
| 41 |
+
```
|
| 42 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 43 |
+
β AmaniQuery β
|
| 44 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
|
| 45 |
+
β π Backend β FastAPI + LangGraph + RAG Pipeline β
|
| 46 |
+
β π€ Voice β Microsoft VibeVoice TTS β
|
| 47 |
+
β π Documents β WeKnora (Tencent RAG Framework) β
|
| 48 |
+
β π§ LLM β Moonshot / Gemini / OpenAI β
|
| 49 |
+
β π Vector Store β Qdrant / Upstash β
|
| 50 |
+
β ποΈ Database β PostgreSQL β
|
| 51 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
---
|
| 55 |
+
|
| 56 |
+
## π API Usage
|
| 57 |
+
|
| 58 |
+
### Query the Knowledge Base
|
| 59 |
+
```bash
|
| 60 |
+
curl -X POST https://amaniquery-backend.hf.space/api/v1/query \
|
| 61 |
+
-H "Content-Type: application/json" \
|
| 62 |
+
-d '{"query": "What does the Kenya Constitution say about land rights?"}'
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
### Text-to-Speech
|
| 66 |
+
```bash
|
| 67 |
+
curl -X POST https://amaniquery-vibevoice.hf.space/api/v1/voice/speak \
|
| 68 |
+
-H "Content-Type: application/json" \
|
| 69 |
+
-d '{"text": "Hello from AmaniQuery", "voice": "Wayne"}'
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
---
|
| 73 |
+
|
| 74 |
+
## π€ Contributing
|
| 75 |
+
|
| 76 |
+
We welcome contributions! Check out our [GitHub repository](https://github.com/AmaniQuery/amaniquery) to get started.
|
| 77 |
+
|
| 78 |
+
---
|
| 79 |
+
|
| 80 |
+
## π License
|
| 81 |
+
|
| 82 |
+
MIT License - See [LICENSE](https://github.com/AmaniQuery/amaniquery/blob/master/LICENSE) for details.
|
| 83 |
+
|
| 84 |
+
---
|
| 85 |
+
|
| 86 |
+
<div align="center">
|
| 87 |
+
|
| 88 |
+
**Made with β€οΈ for Kenya**
|
| 89 |
+
|
| 90 |
+
*Empowering citizens with accessible legal information*
|
| 91 |
+
|
| 92 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|