File size: 439 Bytes
dd58f3d
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Carga de configuración y constantes globales."""
from pathlib import Path
from dotenv import load_dotenv
import os

ENV_PATH = Path(__file__).resolve().parent.parent / ".env"
if ENV_PATH.exists():
    load_dotenv(ENV_PATH)

EMBEDDING_MODEL: str = os.getenv("EMBEDDING_MODEL", "intfloat/e5-large-v2")
DEVICE: str = os.getenv("DEVICE", "cpu")

CHUNK_SIZE: int = 500     # tokens por chunk
CHUNK_OVERLAP: int = 50   # solape entre chunks