"""
Configuration for RAG Service
"""

from pydantic_settings import BaseSettings
from typing import Optional


class Settings(BaseSettings):
    """Application settings loaded from environment variables."""

    # Service
    environment: str = "development"
    port: int = 8082

    # Qdrant
    qdrant_url: str = "http://localhost:6333"
    qdrant_collection: str = "legal_documents"

    # Ollama
    ollama_url: str = "http://localhost:11434"
    embedding_model: str = "bge-m3"
    llm_model: str = "qwen2.5:32b"

    # Document Processing
    chunk_size: int = 512
    chunk_overlap: int = 50

    # Legal Corpus
    corpus_path: str = "./legal-corpus"

    class Config:
        env_file = ".env"
        env_file_encoding = "utf-8"
