Logo Lanfrica
  • Accueil
  • Atlas
  • Analyses
  • Documentation
  • Sign in

© 2026 Lanfrica. Tous droits réservés. Tous les droits d'auteur des ressources affichées sur le site Web Lanfrica appartiennent aux détenteurs de droits d'auteur d'origine, sauf indication contraire explicite.

narydrakotonirina-ai/FandriantanyAI-RAG-backend

Domaine:

natural language processing

Type de record:

software
Créateur:
nar
Hôte:
FandriantanyAI-RAG-backend est une API FastAPI implémentant un pipeline RAG (Retrieval-Augmented Generation) pour l’assistance juridique foncière à Madagascar. Le système combine recherche vectorielle (Supabase + pgvector) et génération de réponses structurées via Groq (Qwen). # FandriantanyAI-RAG-backend FandriantanyAI-RAG-backend est une API FastAPI implémentant un pipeline RAG (Retrieval-Augmented Generation) pour l’assistance juridique foncière à Madagascar. Le système combine recherche vectorielle (Supabase + pgvector) et génération de réponses structurées via Groq (Qwen). Ce projet permet de répondre à des questions juridiques en s'appuyant exclusivement sur des textes légaux (lois foncières, code du travail, etc.) en combinant recherche vectorielle et génération par LLM. Il permet de répondre à des questions juridiques en s'appuyant sur : - 🔎 Recherche hybride (vectorielle + texte) - 🧠 LLM Groq (Qwen) - 🗄️ Base vectorielle Supabase (pgvector) --- # 🚀 Fonctionnalités ✅ Recherche sémantique sur corpus juridique ✅ Pipeline RAG complet (triage → retrieval → génération) ✅ Réponses structurées : - Situation - Risques - Démarches ✅ Cache des réponses ✅ Gestion des erreurs et fallback ✅ Optimisation coûts LLM (limite tokens) --- # 🏗️ Architecture ```text ┌─────────────────────┐ │ Frontend UI │ │ (chat utilisateur) │ └─────────┬───────────┘ │ ▼ ┌─────────────────────┐ │ FastAPI API │ │ /ask /search │ └─────────┬───────────┘ ┌─────────┼───────────┐ ▼ ▼ ┌─────────────┐ ┌──────────────┐ │ Supabase │ │ Groq │ │ PostgreSQL │ │ Qwen LLM │ │ + pgvector │ │ │ └─────────────┘ └──────────────┘ ``` # 🔄 Pipeline RAG ## 1️⃣ Triage (LLM - Groq) - classification du type de problème - détection hors périmètre - reformulation de la requête ## 2️⃣ Retrieval (Supabase) - recherche vectorielle (pgvector) - top_k = 5 chunks - filtre de qualité : `score >= 0.15` # 📦 Stack technique - ⚡ FastAPI - 🗄️ Supabase (PostgreSQL + pgvector) - 🤖 Groq (Qwen LLM) - 🔎 SentenceTransformers (embeddings) - ⚙️ Cachetools (cache mémoire) - 🚀 Railway (déploiement) # 📁 Structure du projet backend/ ├── main.py ├── requirements.txt # ⚙️ Installation locale ## 1. Cloner ```bash git c …

Visit

github.com

Licenses

GPL-3.0

Similaires

kany187/RAG-Translation-AIecoinboxhub/nigeria-ai-backendMamaCare-AI/MamaCare-backendwilfredeveloper/mpesa-ai-backendsemereherruy/ai-agri-advisor-ragkelvinmaina01/Lawlify-AI-RAG-Architecture

kany187/RAG-Translation-AI

RAG Translator AI is an intelligent Mbochi-French translation API powered by Retrieval-Augmented Gen

ecoinboxhub/nigeria-ai-backend

# Nigeria Construction AI Platform (Backend MVP) AI-powered construction management backend for Nig

MamaCare-AI/MamaCare-backend

MamaCare FastAPI Backend is a Python REST API handling all Africa's Talking webhook callbacks and de

wilfredeveloper/mpesa-ai-backend

# AI M-Pesa Payment Agent An AI-powered FastAPI server with CLI interface that can process M-Pesa p

semereherruy/ai-agri-advisor-rag

AI-powered agriculture advisory chatbot using Retrieval-Augmented Generation (RAG) to deliver locali

kelvinmaina01/Lawlify-AI-RAG-Architecture

Lawlify AI is a production-grade Agentic RAG engine for Kenyan & EA law. It eliminates hallucination