From e00f8815379066a754c9a4b068b7f1a68a66dcda Mon Sep 17 00:00:00 2001 From: Daniel Oscar Zamo Date: Wed, 27 Aug 2025 19:49:13 +0200 Subject: [PATCH] update core/config.py --- core/config.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/config.py b/core/config.py index fb3d742..8c0e96d 100644 --- a/core/config.py +++ b/core/config.py @@ -20,7 +20,7 @@ class Settings(BaseSettings): "invoice_id", "invoice_date", "total_amount", - "net_amount", + # "net_amount", "receiver_name", "supplier_tax_id" ] @@ -28,12 +28,12 @@ class Settings(BaseSettings): # --- CAMBIO PARA DEPURACIÓN --- # Bajamos los umbrales para asegurarnos de que los datos se extraen. CONFIDENCE_THRESHOLDS: Dict[str, float] = { - "__default__": 0.82, # <-- Bajamos el por defecto al 10% + "__default__": 0.82, "supplier_name": 0.80, - "total_amount": 0.75, # <-- Bajamos todos a un nivel muy bajo - "net_amount": 0.92, + "total_amount": 0.75, + # "net_amount": 0.92, "receiver_name": 0.74, - "supplier_tax_id": 0.46 # <-- Especialmente este que estaba en 0.46 + "supplier_tax_id": 0.46 } # Creamos una única instancia global de la configuración settings = Settings()