Spaces:
Sleeping
Sleeping
Download test_qdrant.py from thabsheeeeeer/DocBrain-API: direct link, hf CLI and curl.
- Browser
- Download file 257 Bytes
-
https://huggingface.co/spaces/thabsheeeeeer/DocBrain-API/resolve/main/test_qdrant.py
- Command line
-
hf download hf://spaces/thabsheeeeeer/DocBrain-API/test_qdrant.py
-
curl -L -o test_qdrant.py https://huggingface.co/spaces/thabsheeeeeer/DocBrain-API/resolve/main/test_qdrant.py
257 Bytes
| from qdrant_client import QdrantClient | |
| import os | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| client = QdrantClient( | |
| url=os.getenv("QDRANT_URL"), | |
| api_key=os.getenv("QDRANT_API_KEY"), | |
| check_compatibility=False | |
| ) | |
| print(client.get_collections()) |