backend / agent /vector_store.py
riosiahaan's picture
Deploy to new spaces
495399f
Raw History Blame Contribute Delete
500 Bytes
import os
from qdrant_client import QdrantClient
def get_qdrant_client():
"""
Returns a configured QdrantClient instance.
"""
qdrant_url = os.getenv("QDRANT_URL")
qdrant_api_key = os.getenv("QDRANT_API_KEY")
if not qdrant_url:
raise ValueError("QDRANT_URL environment variable is not set")
if not qdrant_api_key:
raise ValueError("QDRANT_API_KEY environment variable is not set")
return QdrantClient(url=qdrant_url, api_key=qdrant_api_key)