Files
brojs-task-6a02e23da6fe2e4a…/qdrant_client.py
T

26 lines
616 B
Python

"""Dummy qdrant_client module for local testing.
Provides a minimal QdrantClient class and nested models used by main.py.
"""
class Distance:
COSINE = "cosine"
class VectorParams:
def __init__(self, size, distance):
self.size = size
self.distance = distance
class QdrantClient:
def __init__(self, url=None):
self.url = url
def get_collections(self):
return type("Collections", (), {"collections": []})()
def create_collection(self, collection_name, vectors_config):
pass
def __repr__(self):
return f"<Dummy QdrantClient url={self.url}>"