pinsmart_prototype / config.py
Reynaldy Hardiyanto
feat: add property search, intent routing, and intent summarization
9012b52
raw
history blame contribute delete
794 Bytes
from functools import lru_cache
from pydantic import BaseSettings
class Settings(BaseSettings):
openai_api_key: str
es_url: str
collection_index_name: str = (
"property_knowledge_references_collection__v1_0" # noqa
)
intent_routing__chat_completion_model_name: str = "gpt-3.5-turbo-0125"
property_search__chat_completion_model_name: str = "gpt-3.5-turbo-1106"
property_search__location_similarity_thres: int = 60
property_search__limit_search_size: int = 3
property_search__exact_price_range_thres: float = 0.1
property_search__limit_price_range_thres: float = 0.25
property_search__value_range_thres: float = 0.1
class Config:
env_file = ".env"
@lru_cache
def get_settings():
settings = Settings()
return settings