Index of every page on this site: llms.txt
All skills
github avatar

/qdrant-performance-optimization

@f10fdb8 official
by githubgithub/awesome-copilot42k stars
5,426
Run it yourself

Different techniques to optimize the performance of Qdrant, including indexing strategies, query optimization, and hardware considerations. Use when you want to improve the speed and efficiency of your Qdrant deployment.

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/qdrant-performance-optimization

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

memory-usage-optimizationSKILL.md

≈1.2k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Understanding memory usage

Qdrant operates with two types of memory:

  • Resident memory (aka RSSAnon) - memory used for internal data structures like the ID tracker, plus components that must stay in RAM, such as quantized vectors when always_ram=true and payload indexes.

  • OS page cache - memory used for caching disk reads, which can be released when needed. Original vectors are normally stored in page cache, so the service won't crash if RAM is full, but performance may degrade.

It is normal for the OS page cache to occupy all available RAM, but if resident memory is above 80% of total RAM, it is a sign of a problem.

Memory usage monitoring

  • Qdrant exposes memory usage through the /metrics endpoint. See Monitoring docs.
<!-- ToDo: Talk about memory usage of each components once API is available -->

How much memory is needed for Qdrant?

Optimal memory usage depends on the use case.

For a detailed breakdown of memory usage at large scale, see Large scale memory usage example.

Payload indexes and HNSW graph also require memory, along with vectors themselves, so it's important to consider them in calculations.

Additionally, Qdrant requires some extra memory for optimizations. During optimization, optimized segments are fully loaded into RAM, so it is important to leave enough headroom. The larger max_segment_size is, the more headroom is needed.

When to put HNSW index on disk

Putting frequently used components (such as HNSW index) on disk might cause significant performance degradation. There are some scenarios, however, when it can be a good option:

  • Deployments with low latency disks - local NVMe or similar.
  • Multi-tenant deployments, where only a subset of tenants is frequently accessed, so that only a fraction of data & index is loaded in RAM at a time.
  • For deployments with inline storage enabled.

How to minimize memory footprint

The main challenge is to put on disk those parts of data, which are rarely accessed. Here are the main techniques to achieve that:

  • Use quantization to store only compressed vectors in RAM Quantization docs

  • Use float16 or int8 datatypes to reduce memory usage of vectors by 2x or 4x respectively, with some tradeoff in precision. Read more about vector datatypes in documentation

  • Leverage Matryoshka Representation Learning (MRL) to store only small vectors in RAM while keeping large vectors on disk. Examples of how to use MRL with Qdrant Cloud inference: MRL docs

  • For multi-tenant deployments with small tenants, vectors might be stored on disk because the same tenant's data is stored together Multitenancy docs

  • For deployments with fast local storage and relatively low requirements for search throughput, it may be possible to store all components of vector store on disk. Read more about the performance implications of on-disk storage in the article

  • For low RAM environments, consider async_scorer config, which enables support of io_uring for parallel disk access, which can significantly improve performance of on-disk storage. Read more about async_scorer in the article (only available on Linux with kernel 5.11+)

  • Consider storing Sparse Vectors and text payload on disk, as they are usually more disk-friendly than dense vectors.

  • Configure payload indexes to be stored on disk docs

  • Configure sparse vectors to be stored on disk docs

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides a set of technical optimization guides for the Qdrant vector database. It contains only informational markdown content and links to official documentation, with no executable code or security risks identified.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at f10fdb8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 7 months ago
What it can do
Reads files
All 3 allowed tools
ReadGrepGlob
  • Performance
  • qdrant
  • vector-search
  • indexing
  • optimization
  • latency
  • throughput
  • memory-management

README badge

README badge for github/awesome-copilot/qdrant-performance-optimization

Provides navigation and techniques for optimizing Qdrant vector database performance across search latency, indexing speed, and memory usage. Covers indexing strategies, query optimization, and hardware considerations for production deployments.

Generated from the current SKILL.md.

Does this skill cover query latency, throughput, or both?
The skill addresses both. It distinguishes between latency (response time for a single query) and throughput (queries processed per time unit), and notes that optimization priorities depend on your use case.
What aspects of Qdrant performance does this skill cover?
The skill covers search speed optimization (latency and throughput), indexing performance (build time for vector indices), and memory usage optimization (balancing in-memory vs. disk storage).
Does this skill provide hands-on tuning steps or configuration examples?
No. This skill is a navigation hub that links to separate skills for each optimization area (search speed, indexing, memory). It does not contain direct tuning instructions.
Can I use this to reduce memory footprint on large datasets?
Yes. The skill includes memory usage optimization that explains how to control which storage parts stay in memory versus on disk without sacrificing performance.

Generated from the current SKILL.md. These answers refresh after source changes.