Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kacperlukawski/9d6c8330b7d4dd1cb1d7e07ba30181c5 to your computer and use it in GitHub Desktop.
Save kacperlukawski/9d6c8330b7d4dd1cb1d7e07ba30181c5 to your computer and use it in GitHub Desktop.
from qdrant_client import QdrantClient
from qdrant_client.http.models import VectorParams, Distance
client = QdrantClient()
client.recreate_collection(
collection_name="multiple_vectors",
vectors_config={
"title": VectorParams(
size=100,
distance=Distance.EUCLID,
),
"image": VectorParams(
size=786,
distance=Distance.COSINE,
),
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment