
vector-index-tuning
Optimize vector index performance for latency, recall, and memory
by wshobsonFree
Description
vector-index-tuning is an agent skill from the wshobson/agents collection for optimizing vector indexes in production for latency, recall and memory. A vector index lets a search find nearest neighbors among many embeddings quickly, and tuning it means trading speed against accuracy and memory. The skill's core concepts begin with index type selection, and it covers tuning HNSW parameters, the settings of a common graph-based index that control how many connections are kept and how far the search explores, along with implementing quantization, which stores vectors in fewer bits to save memory at some cost in accuracy. It addresses balancing recall against speed, meaning the share of true nearest neighbors the search returns versus how fast it returns them, reducing search latency, and scaling to very large collections, up to billions of vectors. It applies when tuning HNSW settings, choosing quantization, optimizing memory, reducing search latency, balancing recall with speed, and scaling up. The right settings depend on the data and the queries, so the agent should measure recall against an exact search on a sample of real queries before a change is adopted. The skill is installed with the skills CLI from the wshobson/agents repository. Its skills.sh page showed about 10.4K installs and passing results from three security audits at the time of the scan.…
Highlights
- Index type selection
- HNSW parameter tuning
- Quantization for memory savings
- Recall versus speed trade-offs
- Scaling to very large collections
- Installs with the skills CLI
Ratings & Reviews
No ratings yet
Be the first to rate vector-index-tuning.
People also visit

embeddings
Vector embeddings with HNSW indexing, sql.js persistence, and hyperbolic support

embedding-strategies
Select and optimize embedding models for semantic search and RAG applications

hybrid-search-implementation
Combine vector and keyword search for improved retrieval

similarity-search-patterns
Implement efficient similarity search with vector databases
vector-index-tuning FAQ
What is HNSW?
A graph-based index for finding nearest neighbors quickly, whose parameters the skill covers tuning.
What is quantization here?
Storing vectors in fewer bits to save memory, at some cost in accuracy.
What is recall?
The share of true nearest neighbors that the search returns, which the skill balances against speed.
How should I check a change?
Measure recall against an exact search on a sample of real queries before adopting the change.
How do I install it?
Run npx skills add https://github.com/wshobson/agents --skill vector-index-tuning.
What security audits does it have?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
What are the best vector-index-tuning alternatives?
Popular alternatives to vector-index-tuning include embeddings, embedding-strategies and hybrid-search-implementation. See all vector-index-tuning alternatives





