DocuMind / app /config.py
Manisankarrr's picture
first commit
cccc3ff
Raw
History Blame Contribute Delete
496 Bytes
"""
Central configuration.
WHY: Keeps provider choice abstract and swappable.
"""
import os
from dotenv import load_dotenv
load_dotenv()
# OpenRouter (FREE)
OPENROUTER_API_KEY = os.getenv("OPENROUTER_API_KEY")
OPENROUTER_MODEL = "z-ai/glm-4.5-air:free"
# Chunking
CHUNK_SIZE = 800
CHUNK_OVERLAP = 200
# Retrieval
TOP_K = 4
# Paths
PDF_DIR = "data/pdfs"
FAISS_DIR = "data/faiss_index"
# Local embeddings
EMBEDDING_MODEL = "sentence-transformers/all-MiniLM-L6-v2"