mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-27 23:18:29 +02:00
* Add new 'Create a Payload Index' section * Add indexing tip to low latency search, search, and filtering docs * Add bash code snippet * Edits * Update qdrant-landing/content/documentation/manage-data/indexing.md Co-authored-by: Tim Visée <tim@visee.me> --------- Co-authored-by: Tim Visée <tim@visee.me>
17 lines
488 B
Python
17 lines
488 B
Python
from qdrant_client import QdrantClient, models # @hide
|
|
|
|
client = QdrantClient(url="http://localhost:6333") # @hide
|
|
|
|
# @block-start get-current-value
|
|
base_ef = client.get_collection(
|
|
collection_name="{collection_name}"
|
|
).config.hnsw_config.ef_construct
|
|
# @block-end get-current-value
|
|
|
|
# @block-start update-collection
|
|
client.update_collection(
|
|
collection_name="{collection_name}",
|
|
hnsw_config=models.HnswConfigDiff(ef_construct=base_ef + 1),
|
|
)
|
|
# @block-end update-collection
|