- Ajout de l'intégration Celery pour les tâches asynchrones - Création des tâches spécialisées (OCR, classification, extraction, indexation, vérification) - Configuration des queues Celery avec Redis - Création du fichier d'environnement complet (.env.example et .env) - Script bootstrap automatisé pour l'initialisation - Amélioration du worker avec orchestration des pipelines - Ajout des dépendances Celery et Kombu Fonctionnalités ajoutées: - Pipeline de traitement asynchrone avec Celery - Tâches de traitement en lot - Monitoring et health checks - Configuration d'environnement centralisée - Script d'initialisation automatisé
72 lines
1.7 KiB
Plaintext
72 lines
1.7 KiB
Plaintext
# Configuration du projet
|
|
PROJECT_NAME=notariat
|
|
DOMAIN=localhost
|
|
TZ=Europe/Paris
|
|
|
|
# Base de données PostgreSQL
|
|
POSTGRES_USER=notariat
|
|
POSTGRES_PASSWORD=notariat_pwd
|
|
POSTGRES_DB=notariat
|
|
|
|
# Redis
|
|
REDIS_PASSWORD=
|
|
|
|
# MinIO (Stockage S3-compatible)
|
|
MINIO_ROOT_USER=minio
|
|
MINIO_ROOT_PASSWORD=minio_pwd
|
|
MINIO_BUCKET=ingest
|
|
|
|
# AnythingLLM
|
|
ANYLLM_API_KEY=change_me
|
|
ANYLLM_BASE_URL=http://anythingllm:3001
|
|
ANYLLM_WORKSPACE_NORMES=workspace_normes
|
|
ANYLLM_WORKSPACE_TRAMES=workspace_trames
|
|
ANYLLM_WORKSPACE_ACTES=workspace_actes
|
|
|
|
# Ollama (LLM local)
|
|
OLLAMA_BASE_URL=http://ollama:11434
|
|
OLLAMA_MODELS=llama3:8b,mistral:7b
|
|
|
|
# Neo4j (Graphe de connaissances)
|
|
NEO4J_AUTH=neo4j/neo4j_pwd
|
|
|
|
# OpenSearch (Recherche plein-texte)
|
|
OPENSEARCH_PASSWORD=opensearch_pwd
|
|
|
|
# Traefik (Passerelle HTTP)
|
|
TRAEFIK_ACME_EMAIL=ops@example.org
|
|
|
|
# Configuration de l'API
|
|
API_HOST=0.0.0.0
|
|
API_PORT=8000
|
|
API_WORKERS=1
|
|
|
|
# Configuration des workers
|
|
WORKER_CONCURRENCY=2
|
|
WORKER_LOGLEVEL=info
|
|
|
|
# Seuils de qualité
|
|
OCR_CONFIDENCE_THRESHOLD=0.75
|
|
CLASSIFICATION_CONFIDENCE_THRESHOLD=0.75
|
|
MANUAL_REVIEW_CER_THRESHOLD=0.08
|
|
|
|
# URLs des APIs externes
|
|
CADASTRE_API_URL=https://apicarto.ign.fr/api/cadastre
|
|
GEORISQUES_API_URL=https://www.georisques.gouv.fr/api
|
|
BODACC_API_URL=https://bodacc-datadila.opendatasoft.com/api
|
|
INFOGREFFE_API_URL=https://entreprise.api.gouv.fr/v2/infogreffe
|
|
RBE_API_URL=https://www.data.gouv.fr/api/1/datasets/registre-des-beneficiaires-effectifs
|
|
|
|
# Configuration de sécurité
|
|
JWT_SECRET_KEY=your-secret-key-change-in-production
|
|
ENCRYPTION_KEY=your-encryption-key-change-in-production
|
|
|
|
# Configuration de monitoring
|
|
PROMETHEUS_ENABLED=true
|
|
GRAFANA_ENABLED=true
|
|
SENTRY_DSN=
|
|
|
|
# Configuration de logs
|
|
LOG_LEVEL=INFO
|
|
LOG_FORMAT=json
|