Spaces:
No application file
No application file
Download config.py from Genos77/Rag-project: direct link, hf CLI and curl.
- Browser
- Download file 588 Bytes
-
https://huggingface.co/spaces/Genos77/Rag-project/resolve/main/config.py
- Command line
-
hf download hf://spaces/Genos77/Rag-project/config.py
-
curl -L -o config.py https://huggingface.co/spaces/Genos77/Rag-project/resolve/main/config.py
588 Bytes
| from pydantic_settings import BaseSettings | |
| from typing import Literal | |
| class Settings(BaseSettings): | |
| PINECONE_API_KEY: str | |
| PINECONE_ENVIRONMENT: str | |
| PINECONE_INDEX_NAME: str = "rag-index" | |
| EMBEDDING_MODEL: str = "sentence-transformers/all-MiniLM-L6-v2" | |
| GOOGLE_GEMINI_API_KEY: str | |
| LLM_MODEL: str = "gemini-2.5-pro" | |
| REDIS_URL: str = "redis://localhost:6379/0" | |
| DATABASE_URL: str = "sqlite+aiosqlite:///./rag.db" | |
| JWT_SECRET_KEY:str | |
| FRONTEND_URL:str | |
| class Config: | |
| env_file = ".env" | |
| settings = Settings() |