Services: Admin-Compliance, Backend-Compliance, AI-Compliance-SDK, Consent-SDK, Developer-Portal, PCA-Platform, DSMS Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
35 lines
742 B
Python
35 lines
742 B
Python
"""
|
|
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"
|