Vector Index Tuning

Tune an approximate nearest-neighbour index against measured recall and latency: compute exact top-k by brute force for about 1,000 sampled real queries, score recall@k as overlap with the index's answers, tune to a stated target such as recall 0.95 at k=10 and a p95 rather than defaults. Covers pgvector HNSW (ef_search via SET LOCAL, maintenance_work_mem) and IVFFlat (lists, probes), OpenSearch k-NN, Elasticsearch knn, the filtered-search trap returning fewer than k rows, and memory cuts with halfvec or quantisation plus exact re-ranking. Use for "vector search misses obvious neighbours", "HNSW build takes forever", "filtered vector query returns fewer than k", "pick ef_search or lists" or "vector index uses too much memory". Not for chunking, hybrid search and the pipeline (rag-design), relevance judgments (retrieval-evaluation) or table design (schema-design).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 51c5728161

Frequently asked questions

npx get-skill add greenblacked/vector-index-tuning