ai-hackaton-backend/rag/settings.py
2025-09-03 14:36:27 +05:00

52 lines
1.4 KiB
Python

import os
from pydantic_settings import BaseSettings
from typing import Optional
class RagSettings(BaseSettings):
# Database
database_url: str = "postgresql+asyncpg://tdjx:1309@localhost:5432/hr_ai"
# Milvus Settings
milvus_uri: str = "http://5.188.159.90:19530"
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: Optional[str] = None
anthropic_api_key: Optional[str] = None
openai_model: str = "gpt-4o-mini"
openai_embeddings_model: str = "text-embedding-3-small"
# AI Agent Settings
deepgram_api_key: Optional[str] = None
cartesia_api_key: Optional[str] = None
elevenlabs_api_key: Optional[str] = None
resemble_api_key: Optional[str] = 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()