An open-source AI assistant for tourism in Burkina Faso, powered by RAG (Retrieval-Augmented Generation).
# đ§đ« Assistant IA Tourisme Burkina Faso â SystĂšme RAG Open Source
> SystÚme de questions-réponses 100% open source sur le tourisme burkinabÚ.
> BGE-M3 + ChromaDB + Qwen3 via Ollama. Zéro coût cloud. Zéro API propriétaire.
## Sujet choisi : Tourisme Burkina Faso
**Justification :** Le tourisme burkinabÚ (Loropéni UNESCO, Cascades de Banfora,
Laongo, FESPACO, artisanat Mossi) est documentable, sous-représenté en IA francophone,
et pertinent pour valoriser le patrimoine local. CritĂšres remplis : 500+ sources
accessibles, forte pertinence locale, données en français.
---
## Architecture technique
```
Question
â
âŒ
[Sanitization] â Prompt injection detection, bleach, max length
â
âŒ
[Embeddings] â BAAI/bge-m3 (multilingual, top MTEB, local)
â
âŒ
[ChromaDB] â Recherche vectorielle (cosine similarity, top-5)
â
âŒ
[Agent LangGraph] â VĂ©rificateur â SynthĂ©tiseur
â
âŒ
[Ollama + Qwen3] â LLM local, rĂ©ponse + sources citĂ©es
â
âŒ
Réponse
```
**Couche agentique légÚre (LangGraph) :**
- NĆud 1 â VĂ©rificateur : Ă©value la pertinence des documents rĂ©cupĂ©rĂ©s
- NĆud 2 â SynthĂ©tiseur : gĂ©nĂšre la rĂ©ponse avec sources obligatoires
---
## Technologies open source utilisées
| Composant | Technologie | Licence | Lien |
|-----------|------------|---------|------|
| Embeddings | sentence-transformers + BAAI/bge-m3 | Apache 2.0 / MIT | github |
| Base vectorielle | ChromaDB | Apache 2.0 | github |
| LLM | Ollama + Qwen2.5-7B | MIT / Apache 2.0 | github |
| Agent | LangGraph | MIT | github |
| Backend | FastAPI | MIT | github |
| Frontend | Gradio | Apache 2.0 | github |
| Scraping | BeautifulSoup4 + trafilatura | MIT / Apache 2.0 | github |
| Sécurité inputs | bleach | Apache 2.0 | github |
| Logs | loguru | MIT | github |
| Rate limiting | slowapi | MIT | github |
---
## Installation pas-Ă -pas
### Prérequis
- Python 3.10+
- Ollama installé localement
- Git
### 1. Clone le repo
```bash
git clone
github.com
cd tourisme-burkina-rag
```
### 2. In âŠ