本文へスキップ
Skillpedia
データベース40k · #7364

qdrant-minimize-latency

できること

このツールは、Qdrantでのデータ検索を速くするためのものです。レスポンスを速くするための調整を提案します。同時に実行できる検索の数が減るとしても、この提案を行います。

使う場面

  • ✓情報の検索に時間がかかりすぎるとき。
  • ✓最も遅いレスポンス(P99レイテンシ)が高すぎるとき。
  • ✓1回1回の検索が予想より長くかかるとき。

スキルのリンク

https://github.com/github/awesome-copilot/blob/main/skills/qdrant-scaling/minimize-latency/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/github/awesome-copilot/blob/main/skills/qdrant-scaling/minimize-latency/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“Qdrantの検索が遅いです。どうすれば速くできますか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

このツールは、プロセッサを効率よく使うために「セグメント」の数を増やすこと、よく使われるデータをRAMに保持すること、検索の複雑さを減らすことを提案します。また、メモリを使いすぎると逆に遅くなる可能性があることも警告します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Scaling for Query Latency

Latency of a single query is determined by the slowest component in the query execution path. It is sometimes correlated with throughput, but not always — throughput and latency are opposite tuning directions.

Low latency optimization is aimed at utilising maximum resource saturation for a single query, while throughput optimization is aimed at minimizing per-query resource usage to allow more parallel queries.

Performance Tuning for Lower Latency

  • Increase segment count to match CPU cores (default_segment_number: 16) Minimizing latency
  • Keep quantized vectors and HNSW in RAM (always_ram=true)
  • Reduce hnsw_ef at query time (trade recall for speed) Search params
  • Use local NVMe, avoid network-attached storage

Memory Pressure and Latency

RAM is the most critical resource for latency. If working set exceeds available RAM, OS cache eviction causes severe, sustained latency degradation.

  • Vertical scale RAM first. Critical if working set >80%.
  • Use quantization: scalar (4x reduction) or binary (16x reduction) Quantization
  • Move payload indexes to disk if filtering is infrequent On-disk payload index
  • Set optimizer_cpu_budget to limit background optimization CPUs
  • Schedule indexing: set high indexing_threshold during peak hours

Vertical Scaling for Latency

More RAM and faster CPU directly reduce latency. See Vertical Scaling for node sizing guidelines.

What NOT to Do

  • Do not expect to optimize latency and throughput simultaneously on the same node
  • Do not use few large segments for latency-sensitive workloads (each segment takes longer to search)
  • Do not run at >90% RAM (cache eviction causes severe latency degradation that can last days)
  • Do not ignore optimizer status during performance debugging
  • Do not scale down RAM without load testing (cache eviction causes days-long latency incidents)
よくある質問

レイテンシとは何ですか?

レイテンシは、検索が完了するまでにかかる時間のことです。レイテンシが低いと、レスポンスが速いことを意味します。

RAMが重要なのはなぜですか?

よく使われるデータをRAMに保持しておくと、システムはそのデータに非常に速くアクセスできるため、レスポンス時間が短くなります。

検索を速くすることと、同時に実行できる検索の数を増やすことを両立できますか?

一般的にはできません。検索を速くする(レイテンシを低くする)ように最適化すると、1回の検索にかけるリソースが増えるため、並列で実行できる検索の数が制限されることがあります。多くの検索を同時にさばく(高スループット)ように最適化すると、1回の検索にかけるリソースを減らすことに重点が置かれます。

詳細

作者による元の説明

Guides Qdrant query latency optimization. Use when someone asks 'search is slow', 'how to reduce latency', 'p99 is too high', 'tail latency', 'single query too slow', 'how to make search faster', or 'latency spikes'.

repo: github/awesome-copilot

人気

GitHubのスター
40k
ランキング
#7364
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル