File size: 645 Bytes
08fd094 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | from functools import lru_cache
from pydantic import Field
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
app_name: str = "AI Knowledge Spine Chunking Service"
environment: str = "local"
database_url: str = Field(
default="postgresql+psycopg://postgres:postgres@localhost:5432/ai_knowledge_spine",
description="SQLAlchemy database URL for chunking and claim persistence.",
)
model_config = SettingsConfigDict(
env_prefix="AKS_",
env_file=".env",
extra="ignore",
)
@lru_cache
def get_settings() -> Settings:
return Settings()
|