File size: 571 Bytes
d064c89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
26
27
from pydantic import BaseModel
from pydantic_settings import BaseSettings, SettingsConfigDict


class QdrantDatabase(BaseModel):
    url: str
    api_key: str
    embedding_dim: int = 512
    model: str = "sentence-transformers/distiluse-base-multilingual-cased-v1"


class LlmProvider(BaseModel):
    model: str
    api_key: str


class Settings(BaseSettings):
    qdrant_database: QdrantDatabase
    llm_provider: LlmProvider

    model_config = SettingsConfigDict(
        case_sensitive=False, env_nested_delimiter="__", env_file=".env"
    )


settings = Settings()