Logo Lanfrica

gheezy001/legalmind-senegal

Domaine:

natural language processing

Type de record:

software
Créateur:
ghe
Hôte:
Agent IA legal du Senegal # LegalMind Sénégal — Agent IA Juridique Agent IA juridique spécialisé en droit sénégalais et OHADA. Système RAG + Transfer Learning + Fine-tuning Mistral 7B. ## Structure du projet ``` legalmind/ ├── data/ │ ├── raw/ # Documents juridiques bruts (PDFs, TXTs) │ ├── processed/ # Chunks JSON + dataset fine-tuning │ └── embeddings/ │ ├── chroma_db/ # Base vectorielle ChromaDB │ └── modele_affine/ # Modèle embeddings après transfer learning ├── scripts/ │ ├── 01_collecter_documents.py # Téléchargement docs juridiques │ ├── 02_traiter_documents.py # Chunking sémantique par article │ ├── 03_indexer_chroma.py # Transfer Learning + ChromaDB │ ├── 04_generer_dataset.py # Dataset fine-tuning JSONL │ └── 05_finetuning_lora.py # Script LoRA Mistral 7B (Colab) ├── src/ │ ├── rag/ # Pipeline RAG │ ├── agent/ # Agent orchestrateur (Jour 2) │ ├── tools/ # Outils calcul juridique (Jour 2) │ └── utils/ # Utilitaires communs ├── run_jour1.py # Lance tout le pipeline Jour 1 ├── run_jour2.py # Agent + LLM (Jour 2) ├── run_jour3.py # Interface + WhatsApp (Jour 3) ├── app.py # Application Streamlit (Jour 3) ├── requirements.txt └── .env.example ``` ## Démarrage rapide — Jour 1 ```bash # 1. Cloner et configurer git clone github.com cd legalmind-senegal # 2. Environnement Python python -m venv .venv source .venv/bin/activate # Linux/Mac # .venv\Scripts\activate # Windows # 3. Dépendances pip install -r requirements.txt # 4. Configuration cp .env.example .env # Éditer .env : ajouter ANTHROPIC_API_KEY # 5. Lancer le pipeline Jour 1 python run_jour1.py # Options : python run_jour1.py --no-download # Si docs déjà téléchargés python run_jour1.py --no-tl # Sans transfer learning (plus r …

Languages