rag-movie-api / app /retrieval /vectorstore.py
JJ Tsao
API update
1005046
raw
history blame contribute delete
384 Bytes
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