Spaces:
Running
Running
from qdrant_client import QdrantClient | |
def connect_qdrant(endpoint: str, api_key: str) -> QdrantClient: | |
try: | |
client = QdrantClient( | |
url=endpoint, | |
api_key=api_key | |
) | |
print ("β Connected to Qdrant.") | |
return client | |
except Exception as e: | |
print(f"β Error connecting to Qdrant: {e}") | |
raise | |