Download scripts/debug/debug_qdrant.py from Granis87/MnemoCore: direct link, hf CLI and curl.
- Browser
- Download file 782 Bytes
-
https://huggingface.co/Granis87/MnemoCore/resolve/main/scripts/debug/debug_qdrant.py
- Command line
-
hf download hf://Granis87/MnemoCore/scripts/debug/debug_qdrant.py
-
curl -L -o debug_qdrant.py https://huggingface.co/Granis87/MnemoCore/resolve/main/scripts/debug/debug_qdrant.py
782 Bytes
| import asyncio | |
| import sys | |
| import os | |
| from unittest.mock import patch | |
| # Add src to path | |
| sys.path.append(os.getcwd()) | |
| from mnemocore.core.qdrant_store import QdrantStore | |
| async def main(): | |
| print("Starting main", flush=True) | |
| with patch("src.core.qdrant_store.AsyncQdrantClient") as MockClass: | |
| print("Patched AsyncQdrantClient", flush=True) | |
| try: | |
| store = QdrantStore() | |
| print("Instantiated QdrantStore", flush=True) | |
| await store.ensure_collections() | |
| print("Called ensure_collections", flush=True) | |
| except Exception as e: | |
| print(f"Error: {e}", flush=True) | |
| import traceback | |
| traceback.print_exc() | |
| if __name__ == "__main__": | |
| asyncio.run(main()) | |