Skip to main content

🌍 Wooma African RAG Assistant

Un package Python complet développé par et pour la communauté africaine (Wooma CI), combinant un vectoriseur de documents et un assistant conversationnel (RAG) propulsé par l'IA.

Python Version License

🎯 Fonctionnalités

  • Vectoriseur de documents (GUI) : Interface graphique élégante pour extraire et vectoriser vos données (PDF, DOCX, XLSX, PPTX, CSV, JSON, TXT) vers ChromaDB.
  • Chat Assistant (Web UI) : Interface web réactive avec streaming, historique, copie de code et coloration syntaxique.
  • Prêt pour l'intégration : Utilisable en ligne de commande (CLI) ou importable en tant que module dans vos propres scripts Python.
  • FastAPI Ready : Montez le chat directement comme une sous-application dans vos propres projets FastAPI.

🚀 Installation

Installez simplement le package via pip :

pip install wooma-rag-assistant

Note : Assurez-vous d'avoir Ollama installé et lancé en arrière-plan pour l'inférence des modèles LLM.

💻 Cas d'utilisation

1. En ligne de commande (CLI)

Une fois installé, vous disposez de deux commandes globales dans votre terminal :

Lancer le vectoriseur (Interface Graphique) :

rag-vectorizer

Lancer le serveur Web de Chat :

rag-chat --port 8080 --model llama3.2

2. Importation dans vos propres scripts Python

Vous pouvez réutiliser la logique d'extraction de documents dans vos projets Data Science :

from pathlib import Path
from rag_assistant import DocumentProcessor, CollectionManager

# Extraire le texte et les métadonnées d'un fichier
fichier = Path("mon_document_afrique.pdf")
processeur = DocumentProcessor()
lignes, metadonnees = processeur.process_file(fichier)

print(f"Extractions : {len(lignes)} fragments.")

# Voir vos collections ChromaDB
manager = CollectionManager()
print(manager.list_collections())

3. Intégration dans une API (FastAPI)

Vous développez déjà une API FastAPI ? Montez notre application RAG en une seule ligne de code :

import uvicorn
from fastapi import FastAPI
from rag_assistant import app as rag_app

mon_api = FastAPI()

@mon_api.get("/hello")
def hello():
    return {"message": "Bienvenue sur mon API"}

# Intégrer l'assistant RAG sous l'URL /rag
mon_api.mount("/rag", rag_app)

if __name__ == "__main__":
    uvicorn.run(mon_api, host="127.0.0.1", port=8000)

Rendez-vous ensuite sur http://localhost:8000/rag/ !

🤝 Contribution

Vos contributions (Pull Requests) sont les bienvenues pour améliorer cet outil !

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wooma_rag_assistant-0.1.6.tar.gz (494.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wooma_rag_assistant-0.1.6-py3-none-any.whl (491.4 kB view details)

Uploaded Python 3

File details

Details for the file wooma_rag_assistant-0.1.6.tar.gz.

File metadata

  • Download URL: wooma_rag_assistant-0.1.6.tar.gz
  • Upload date:
  • Size: 494.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.9

File hashes

Hashes for wooma_rag_assistant-0.1.6.tar.gz
Algorithm Hash digest
SHA256 3ce3a7fc784c55315f3e6ba5ef189c60157797c85dbe54dde66619f179d35032
MD5 490cc7f89a2d9ae45e76e5c2702ac4b8
BLAKE2b-256 a718e585a5e1254379a44db2049303adcadfbe59e5c33ed3c2105ef8d58e7e39

See more details on using hashes here.

File details

Details for the file wooma_rag_assistant-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for wooma_rag_assistant-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c1358a21cac3bc2d8e1202d5991b83b1ec2065de366495871a025b7c37995962
MD5 95139404da5b6b8191e9b2e783ce7dc1
BLAKE2b-256 739ac5d8dcedc17ecefcf9b921b84f97e18f5e8e1ac47a9fa17e5c66ebcafe06

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 files

0.1.5

2 files

0.1.4

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page