Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Qdrant Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-qdrant-knowledge-patch)
---
name: qdrant-knowledge-patch
description: Qdrant
version: "1.20.2"
license: MIT
metadata:
author: Nevaberry
---
# Qdrant Knowledge Patch
Load this skill when upgrading or operating Qdrant, changing collection or
index configuration, or implementing point updates, filtering, and ranking.
Use the quick reference below and the topic files for detailed behavior,
examples, and version-specific qualifications.
## Reference index
| Reference | Topics |
| --- | --- |
| [Collections, writes, and multitenancy](references/collections-writes-and-multitenancy.md) | Strict mode, quotas, vector schema, tenant routing, updates, backpressure, resharding |
| [Deployment, upgrades, and operations](references/deployment-upgrades-and-operations.md) | Upgrade order, deprecated interfaces, startup, authentication, snapshots, transfers, WAL, Edge, platforms |
| [Indexing, storage, and quantization](references/indexing-storage-and-quantization.md) | Quantization, HNSW, payload indexes, GPU indexing, memory placement, optimizers, Gridstore |
| [Observability, auditing, and Web UI](references/observability-auditing-and-ui.md) | Audit logs, tracing, metrics, telemetry, memory monitoring, transfer progress, UI workflows |
| [Retrieval, ranking, and filtering](references/retrieval-ranking-and-filtering.md) | Score formulas, MMR, feedback, RRF, ACORN, payload conditions, grouping, timeouts |
| [Full-text search](references/text-search.md) | Tokenizers, normalization, phrase and any-term matching, BM25, per-query IDF |
## Upgrade and deprecation checks
Upgrade through consecutive minor releases, using the latest patch of each
intermediate minor for self-hosted deployments. Nodes can run adjacent minor
versions together; finish each minor upgrade on every node before starting
the next. Single-node deployments also need every intermediate minor for
data migrations.
Upgrade client SDKs before the server cluster and verify target compatibility.
SDKs are tested for backward compatibility with the latest three server minors.
Zero-downtime upgrades require every collection to have replication factor
at least 2 and nodes to restart one at a time. Plan a short outage for a
single-node deployment or any collection with replication factor 1.
- Before upgrading to 1.17.0, check for the shard-key format deprecated in
1.15.0; 1.17.0 disables it. The gRPC vector response format also changes:
upgrade official clients and check direct reads of deprecated response fields.
- Replace deprecated search-method calls before moving to 1.18.x, which
removes those methods from the server for all client versions. The reference
also records the later REST OpenAPI removal and gRPC endpoint deprecation.
- Complete migration off RocksDB before 1.18.0, which removes support.
The reference retains the earlier removal plan and development-build scope.
- The global quota API supersedes the deprecated collection strict-mode
setting `max_resident_memory_percent`.
- Disable BM25 stemming with the explicit option; the legacy `"none"`
workaround is deprecated.
- The deprecated REST field `on_disk_payload` is optional.
## Changed defaults and validation
The default update queue capacity drops from 1,000,000 to 200 pending updates
in 1.19.0, so writes encounter queue backpressure sooner at the default setting.
Update requests have a default timeout of 60 seconds.
With an API key configured, `service.enforce_internal_auth` defaults to `true`
in 1.20.0. Authenticated internal gRPC calls require a read-write API key and
support `alt_api_key` for rotation. A distributed deployment with an API key
logs a startup warning when enforcement is disabled.
The server rejects vectors above 65,536 dimensions and zero-length dense
vectors. Asynchronous upserts reject dimension mismatches before writing to
the WAL. Average-vector recommendations require all positive and negative
vector examples to have the same number of dimensions.
Sparse vector definitions require a nonempty name. Collection names `.` and
`..` are rejected. In 1.20.0, vector names that resolve outside the segment
directory are rejected, and `.` and `..` are reserved vector names.
Cluster endpoints return HTTP `405 Method Not Allowed` in standalone mode.
Recommendation queries in the Query API error on missing referenced point IDs.
An empty `min_should` list with positive `min_count` matches no points.
## Collections, writes, and tenants
Set `strict_mode_config` to control unindexed filtering and limits on batches,
payload sizes, filter conditions, timeouts, `hnsw_ef`, and `oversampling`.
Exceeding a configured limit returns a client error identifying the limit;
toggle `enabled` on an existing collection. Strict mode also limits payload
index counts and batch searches through `search_max_batchsize`, and enforces
`max_query_limit` on scrolls even when `limit` is omitted.
Add a named vector field to an existing collection, populate it with embeddings
from a new model, and remove the old field when migration is complete.
Collection metadata can record the embedding model; collection info returns
the recorded creation timestamp in `created_at`.
Use `update_mode` values `upsert`, `update`, or `insert`. Insert-only creates
points with absent IDs; update-only changes points with existing IDs.
For conditional updates, filter the existing payload. Optimistic concurrency
can require the stored `version` read by the caller and increment it in the
same update; a stale write leaves the point unchanged.
Enable `prevent_unoptimized` to throttle updates to the indexing rate,
limiting large unoptimized segments whose points indexed-only queries can
temporarily miss. Point updates can be deferred with this setting; the queue
can process other operations while waiting for them.
For tiered multitenancy, use user-defined sharding with a shared fallback shard
for small tenants and dedicated shards for large tenants. Supply a shard key
selector on inserts and queries; use a tenant payload filter on queries that
can reach the shared shard. Promotion to a dedicated shard can preserve the
same selector while reads and writes continue.
## Retrieval and ranking
- Recency: add `gauss_decay` to `$score` in a formula over prefetched results.
Set `target.datetime` to the current time, `x.datetime_key` to the datetime
payload field, and `scale` in seconds.
- Diversity: put `mmr` beside `nearest`; `candidates_limit` sizes the pool,
and `diversity` ranges from `0.0` for relevance to `1.0` for diversity.
- Feedback: pairs of more- and less-relevant examples from a few top results
adjust similarity scoring across the vector space for a second retrieval pass.
- Fusion: configure RRF constant `k` to tune higher-rank influence and assign
weights to individual input queries to control each ranked list's contribution.
- Filtered HNSW: optional query-time `acorn` helps when combined filters hurt
recall and works with the existing index. ACORN can also use payload-block
links on an HNSW graph configured with `m: 0`.
- Formulas support `max`, `min`, and `acosh`. For multiple geo points in one
payload field, `geo_distance` uses the point closest to the formula's origin.
Scalar-quantized L2 scores use a corrected offset that can change which results
pass a fixed `score_threshold`. Best-score recommendations with Euclid distance
have corrected threshold handling in 1.20.1. Score-boosting queries apply
`score_threshold` when selecting results.
Enable prefix matching on a keyword index before using `match.prefix`.
Use `match.substring` for substrings within payload strings; this requires a
full scan. Slice conditions divide scrolls into deterministic subsets or take
repeatable samples. `group_by` supports explicit array indices in payload paths.
## Full-text search
The standard build includes `multilingual` for languages without whitespace
word boundaries, such as Japanese and Chinese. Use tokenizer `code` for source
code. Set `stopwords` to a language and `ascii_folding` for matches such as
`cafe` to `café`. A text index can use a language-specific Snowball `stemmer`
to match inflected forms to the same stem.
Enable `phrase_matching` on a text index, then use `match.phrase` for consecutive
tokens in order. With string arrays, all phrase tokens must occur in a single
element. On unindexed payload fields, phrase matching also requires consecutive
tokens in the specified order.
Use `match.text_any` to match at least one token from a server-tokenized query
string. It also works without a full-text index starting in 1.19.2.
A full-text payload index can rank matches with BM25 using indexed text in
1.20.0. Sparse-vector queries can choose their IDF corpus so tenants sharing
a collection score against their own corpus statistics.
## Indexing, storage, and memory
Binary quantization supports 1.5-bit and 2-bit encodings per dimension.
The 2-bit encoding explicitly represents near-zero values for better precision
on lower-dimensional vectors. Asymmetric search can use binary stored vectors
and 8-bit scalar queries. This can improve scoring precision while retaining
the binary storage footprint. TurboQuant supports 1-bit, 1.5-bit, 2-bit, and 4-bit
configurations with cosine, dot-product, and L2 distances.
Use 4-bit TurboQuant as primary vector storage to store only the quantized
representation. Higher-precision `turbo8` and `turbo16` vector datatypes are
available in 1.20.0; set `datatype` on the vector definition at collection creation.
Enable quantization and HNSW `inline_storage` for fewer random reads in
disk-based searches, with increased index storage requirements. In 1.20.0,
`hnsw_config.inline_storage` makes the graph file hold the sole stored vector
copy. Immutable segments default to single-file memory-mapped vector storage.
Set each component's `memory` to `"cold"`, `"cached"`, or `"pinned"` independently.
The ID tracker has its own memory placement in 1.20.0. Low-memory startup forces
storage components to open on disk to reduce memory-exhaustion risk while loading.
Disable payload-field HNSW edges for fields used only in standalone payload
filters. Changing `enable_hnsw` updates an index in place and preserves its data;
changing a payload index's `on_disk` flag no longer rebuilds it. Use `nested`
when creating per-element indexes on arrays of objects for nested conditions.
Vulkan-capable GPUs, including compatible integrated GPUs, can build HNSW
indexes in self-hosted deployments. For Docker, use a preconfigured GPU image
and check service logs for GPU detection and use. Classic HNSW construction is
the default again in 1.20.2, so `ef_construct` tunes quality on large segments.
## Operations and observability
Use `/cluster/telemetry` for all-peer telemetry and
`/collections/{collection_name}/optimizations` for ongoing and past segment
optimizations across the cluster. The collection Memory tab and memory API
report disk, RAM, and OS page cache for vectors, payloads, and indexes across
the cluster. Telemetry reports effective resources, accounting for cgroup
limits where applicable.
Scrape `/metrics?per_collection=true` for a `collection` label on
`rest_responses_*` and `grpc_responses_*`. `/metrics` can use a dedicated port;
`cpu_cores_used` reports CPU usage in cores. The references detail zero-valued
metric emission, transfer monitoring, and audit-log telemetry exclusions.
Audit logs track API operations requiring authentication or authorization.
The audit log API aggregates entries from all nodes and filters by time range
or any field value. Supply tracing IDs through `x-request-id`, `x-tracing-id`,
or `traceparent`; keep IDs at most 256 encoded bytes. Set `audit.output` to
`stdout` or `stderr` for process streams; its default is `file`.
Collection snapshots can use Google Cloud Storage or Azure Blob Storage with
an object key prefix. Snapshot storage settings for S3, GCS, or Azure include
`timeout_sec`, `connect_timeout_sec`, `max_retries`, and `retry_timeout_sec`.
Local snapshot recovery is restricted to the server's snapshot directory.
Snapshot recoveries for the same shard run one at a time.
Delayed read fan-outs send a slow read to another replica of the same shard
after a configured latency threshold and use the first available response.
Send the same routing token on related reads for deterministic replica routing.