Skip to content

Instantly share code, notes, and snippets.

@kacperlukawski
Last active September 26, 2022 14:15
Show Gist options
  • Save kacperlukawski/45f77337a08c9f857710bd04416d89c7 to your computer and use it in GitHub Desktop.
Save kacperlukawski/45f77337a08c9f857710bd04416d89c7 to your computer and use it in GitHub Desktop.
from qdrant_client import QdrantClient
from qdrant_client.conversions.common_types import VectorParams
client = QdrantClient("localhost", 6333)
client.recreate_collection(
collection_name="test_collection",
vectors_config=VectorParams(size=4, distance=Distance.EUCLID),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment