Download src/config.py from low-key-007/financial-analyst-api: direct link, hf CLI and curl.
- Browser
- Download file 351 Bytes
-
https://huggingface.co/spaces/low-key-007/financial-analyst-api/resolve/main/src/config.py
- Command line
-
hf download hf://spaces/low-key-007/financial-analyst-api/src/config.py
-
curl -L -o config.py https://huggingface.co/spaces/low-key-007/financial-analyst-api/resolve/main/src/config.py
351 Bytes
| import os | |
| from pydantic import BaseModel | |
| class Settings(BaseModel): | |
| APP_NAME: str = "FinSight RAG Engine" | |
| VERSION: str = "1.2.0" | |
| GROQ_API_KEY: str = os.getenv("GROQ_API_KEY", "") | |
| EMBEDDING_MODEL: str = "all-MiniLM-L6-v2" | |
| LLM_MODEL: str = "llama3-8b-8192" | |
| CHUNK_SIZE: int = 1000 | |
| CHUNK_OVERLAP: int = 200 | |
| conf = Settings() | |