Created
October 4, 2022 14:02
-
-
Save kacperlukawski/9d6c8330b7d4dd1cb1d7e07ba30181c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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