ai-hackaton-backend/rag/settings.py
2025-09-09 21:43:44 +05:00

51 lines
1.3 KiB
Python

from pydantic_settings import BaseSettings
class RagSettings(BaseSettings):
# Database
database_url: str = "postgresql+asyncpg://tdjx:1309@localhost:5432/hr_ai"
# Milvus Settings
milvus_uri: str = "milvus_uri"
milvus_collection: str = "candidate_profiles"
# Redis
redis_cache_url: str = "localhost"
redis_cache_port: int = 6379
redis_cache_db: int = 0
# S3 Configuration
s3_endpoint_url: str
s3_access_key_id: str
s3_secret_access_key: str
s3_bucket_name: str
s3_region: str = "ru-1"
# LLM Settings
openai_api_key: str | None = None
anthropic_api_key: str | None = None
openai_model: str = "gpt-5-mini"
openai_embeddings_model: str = "text-embedding-3-small"
# AI Agent Settings
deepgram_api_key: str | None = None
cartesia_api_key: str | None = None
elevenlabs_api_key: str | None = None
resemble_api_key: str | None = None
# LiveKit Configuration
livekit_url: str = "ws://localhost:7880"
livekit_api_key: str = "devkey"
livekit_api_secret: str = "devkey_secret_32chars_minimum_length"
# App Configuration
app_env: str = "development"
debug: bool = True
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
settings = RagSettings()