vector-index-tuning

Optimizes vector index latency, recall and memory usage via HNSW parameter and quantization tuning.

1|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/yusufcmg/Antigravity-Agents-Workflows --skill vector-index-tuning-yusufcmg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vector-index-tuning
Source: https://github.com/yusufcmg/Antigravity-Agents-Workflows/tree/main/.agent/skills/ai/vector-index-tuning
Command: npx skills add https://github.com/yusufcmg/Antigravity-Agents-Workflows --skill vector-index-tuning-yusufcmg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires hnswlib, scikit-learn, qdrant-client, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of optimizing vector index performance, ensuring efficient and accurate similarity searches in large-scale vector databases.

Core Features & Use Cases

  • HNSW Parameter Tuning: Adjust M, efConstruction, and efSearch for optimal recall and latency.
  • Quantization Strategies: Implement INT8, Product Quantization, or Binary quantization to reduce memory footprint.
  • Performance Monitoring: Profile index build times and search latencies.
  • Use Case: When dealing with millions of embeddings, use this Skill to select the best HNSW parameters and quantization method to achieve sub-millisecond search latency while maintaining high recall.

Quick Start

Use the vector-index-tuning skill to recommend HNSW parameters for 1 million vectors with a target recall of 95%.

Frequently Asked Questions about vector-index-tuning

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I tune HNSW parameters for optimal recall and latency in a vector database?

Reduce vector database memory consumption by applying INT8, Product Quantization, or Binary quantization strategies. These techniques compress embeddings to scale vector search infrastructure while maintaining high recall.

What is the best way to optimize vector search performance for 1 million vectors?

Optimize vector search for 1 million vectors by profiling index build times and search latencies. Selecting the appropriate HNSW parameters and quantization method achieves a 95% target recall efficiently.

Can I use scikit-learn and qdrant-client to profile vector index build times?

Yes, you can use scikit-learn and qdrant-client alongside hnswlib to profile vector index build times and search latencies. This monitors performance bottlenecks when scaling vector search infrastructure.

When should I use Product Quantization over Binary quantization for similarity search?

Choose Product Quantization over Binary quantization for similarity search when balancing high recall against significant memory reduction. Profiling index search latencies determines the optimal strategy for your embeddings.