Spaces:
Sleeping
Sleeping
Download app/config.py from Arif-Badhon/Generative_AI_Project: direct link, hf CLI and curl.
- Browser
- Download file 645 Bytes
-
https://huggingface.co/spaces/Arif-Badhon/Generative_AI_Project/resolve/main/app/config.py
- Command line
-
hf download hf://spaces/Arif-Badhon/Generative_AI_Project/app/config.py
-
curl -L -o config.py https://huggingface.co/spaces/Arif-Badhon/Generative_AI_Project/resolve/main/app/config.py
645 Bytes
| from pydantic_settings import BaseSettings | |
| from functools import lru_cache | |
| class Settings(BaseSettings): | |
| # Ollama | |
| ollama_base_url: str = "http://localhost:11434" | |
| ollama_model: str = "llama3.1" | |
| # Qdrant | |
| qdrant_host: str = "localhost" | |
| qdrant_port: int = 6333 | |
| qdrant_collection_name: str = "documents" | |
| # Embeddings | |
| embedding_model: str = "sentence-transformers/all-MiniLM-L6-v2" | |
| embedding_dimension: int = 384 | |
| # App | |
| app_host: str = "0.0.0.0" | |
| app_port: int = 8000 | |
| class Config: | |
| env_file = ".env" | |
| def get_settings() -> Settings: | |
| return Settings() | |