refactor: migrate chat and ingestion logic into dedicated services and consolidate database initialization
177071b Download db/bootstrap.py from atara57769/RAG_Knowledge_Assistant: direct link, hf CLI and curl.
- Browser
- Download file 190 Bytes
-
https://huggingface.co/spaces/atara57769/RAG_Knowledge_Assistant/resolve/main/db/bootstrap.py
- Command line
-
hf download hf://spaces/atara57769/RAG_Knowledge_Assistant/db/bootstrap.py
-
curl -L -o bootstrap.py https://huggingface.co/spaces/atara57769/RAG_Knowledge_Assistant/resolve/main/db/bootstrap.py
190 Bytes
| import logging | |
| from db.qdrant_client import init_db | |
| logger = logging.getLogger(__name__) | |
| def init_database(): | |
| logger.info("Bootstrapping database schema/collections...") | |
| init_db() | |