mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-07 20:08:32 +02:00
* Replace memmap_threshold with indexing_threshold * Update GitHub Stars * Update GitHub Stars * Update GitHub Stars --------- Co-authored-by: myyrakle <16988115+myyrakle@users.noreply.github.com>
10 lines
329 B
Python
10 lines
329 B
Python
from qdrant_client import QdrantClient, models
|
|
|
|
client = QdrantClient(url="http://localhost:6333")
|
|
|
|
client.create_collection(
|
|
collection_name="{collection_name}",
|
|
vectors_config=models.VectorParams(size=768, distance=models.Distance.COSINE),
|
|
optimizers_config=models.OptimizersConfigDiff(indexing_threshold=20000),
|
|
)
|