Spaces:
Sleeping
Sleeping
Download src/services/qdrant_handler.py from ashishninehertz/ConvoBot: direct link, hf CLI and curl.
- Browser
- Download file 311 Bytes
-
https://huggingface.co/spaces/ashishninehertz/ConvoBot/resolve/main/src/services/qdrant_handler.py
- Command line
-
hf download hf://spaces/ashishninehertz/ConvoBot/src/services/qdrant_handler.py
-
curl -L -o qdrant_handler.py https://huggingface.co/spaces/ashishninehertz/ConvoBot/resolve/main/src/services/qdrant_handler.py
311 Bytes
| from qdrant_client import QdrantClient | |
| from config import QDRANT_HOST, QDRANT_PORT, QDRANT_COLLECTION_NAME | |
| class QdrantHandler: | |
| def __init__(self): | |
| self.client = QdrantClient( | |
| host=QDRANT_HOST, | |
| port=QDRANT_PORT | |
| ) | |
| self.collection_name = QDRANT_COLLECTION_NAME |