Spaces:
Sleeping
Sleeping
| from qdrant_client import QdrantClient | |
| import os | |
| url = "https://justmotes-xvector-db-node.hf.space" | |
| api_key = "xvector_secret_pass_123" | |
| print(f"Testing QdrantClient to {url}...") | |
| try: | |
| print("Attempt 1: Standard (verify=False, check_compatibility=False)") | |
| client = QdrantClient(url=url, api_key=api_key, timeout=10, verify=False, check_compatibility=False) | |
| print(client.get_collections()) | |
| print("Success 1") | |
| except Exception as e: | |
| print(f"Failed 1: {e}") | |
| try: | |
| print("\nAttempt 2: prefer_grpc=False") | |
| client = QdrantClient(url=url, api_key=api_key, timeout=10, verify=False, check_compatibility=False, prefer_grpc=False) | |
| print(client.get_collections()) | |
| print("Success 2") | |
| except Exception as e: | |
| print(f"Failed 2: {e}") | |
| try: | |
| print("\nAttempt 3: port=443") | |
| client = QdrantClient(url=url, port=443, api_key=api_key, timeout=10, verify=False, check_compatibility=False) | |
| print(client.get_collections()) | |
| print(f"Exists 'dashVector_v1': {client.collection_exists('dashVector_v1')}") | |
| print("Success 3") | |
| except Exception as e: | |
| print(f"Failed 3: {e}") | |