Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kacperlukawski/3ade04b61364f13340216120f0f87651 to your computer and use it in GitHub Desktop.
Save kacperlukawski/3ade04b61364f13340216120f0f87651 to your computer and use it in GitHub Desktop.
from qdrant_client import QdrantClient
from qdrant_client.http.models import VectorParams, Distance
client = QdrantClient(timeout=None)
client.recreate_collection(
collection_name="ms-coco-2017",
vectors_config={
"text": VectorParams(
size=384,
distance=Distance.EUCLID,
),
"image": VectorParams(
size=1000,
distance=Distance.COSINE,
),
},
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment