Guide to optimizing vector indexes for production performance.
Use this skill when
Tuning HNSW parameters
Implementing quantization
Optimizing memory usage
Reducing search latency
Balancing recall vs speed
Scaling to billions of vectors
Do not use this skill when
You only need exact search on small datasets (use a flat index)
You lack workload metrics or ground truth to validate recall
You need end-to-end retrieval system design beyond index tuning
Instructions
Gather workload targets (latency, recall, QPS), data size, and memory budget.
Choose an index type and establish a baseline with default parameters.
Benchmark parameter sweeps using real queries and track recall, latency, and memory.
Validate changes on a staging dataset before rolling out to production.
Refer to resources/implementation-playbook.md for detailed patterns, checklists, and templates.
Safety
Avoid reindexing in production without a rollback plan.
Validate changes under realistic load before applying globally.
Track recall regressions and revert if quality drops.
Resources
resources/implementation-playbook.md for detailed patterns, checklists, and templates.
1---2name: vector-index-tuning3description: Vector Index Tuning4---5# Vector Index Tuning67Guide to optimizing vector indexes for production performance.89## Use this skill when1011- Tuning HNSW parameters12- Implementing quantization13- Optimizing memory usage14- Reducing search latency15- Balancing recall vs speed16- Scaling to billions of vectors1718## Do not use this skill when1920- You only need exact search on small datasets (use a flat index)21- You lack workload metrics or ground truth to validate recall22- You need end-to-end retrieval system design beyond index tuning2324## Instructions25261. Gather workload targets (latency, recall, QPS), data size, and memory budget.272. Choose an index type and establish a baseline with default parameters.283. Benchmark parameter sweeps using real queries and track recall, latency, and memory.294. Validate changes on a staging dataset before rolling out to production.3031Refer to `resources/implementation-playbook.md` for detailed patterns, checklists, and templates.3233## Safety3435- Avoid reindexing in production without a rollback plan.36- Validate changes under realistic load before applying globally.37- Track recall regressions and revert if quality drops.3839## Resources4041- `resources/implementation-playbook.md` for detailed patterns, checklists, and templates.
Run npx skillmds@latest add comeonoliver/vector-index-tuning in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Vector Index Tuning It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
ComeOnOliver (@comeonoliver) published this skill. Their other Agent Skills are listed on their SkillMD profile.