mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-09 21:08:31 +02:00
12 lines
298 B
Python
12 lines
298 B
Python
from qdrant_client import QdrantClient, models
|
|
|
|
# @hide-start
|
|
client = QdrantClient(url="http://localhost:6333")
|
|
# @hide-end
|
|
|
|
client.create_collection(
|
|
collection_name="{collection_name}",
|
|
vectors_config=models.VectorParams(size=300, distance=models.Distance.COSINE),
|
|
shard_number=6,
|
|
)
|