.claude/skills/agentdb/when-optimizing-vector-search-use-agentdb-optimization/SKILL.md
--- skill_id: when-optimizing-vector-search-use-agentdb-optimization name: AgentDB Vector Search Optimization version: 1.0.0 category: agentdb subcategory: performance-optimization trigger_pattern: "when-optimizing-vector-search" agents: - performance-analyzer - ml-developer - backend-dev complexity: intermediate estimated_duration: 5-7 hours prerequisites: - AgentDB basics - Vector search concepts - Performance profiling skills outputs: - Optimized vector database - 4-32x memory
npx skillsauth add DNYoussef/ai-chrome-extension AgentDB Vector Search OptimizationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Optimize AgentDB performance with quantization (4-32x memory reduction), HNSW indexing (150x faster search), caching, and batch operations for scaling to millions of vectors.
import { AgentDB, Quantization, QueryCache } from 'agentdb-optimization';
const db = new AgentDB({ name: 'optimized-db', dimensions: 1536 });
// Quantization (4x memory reduction)
const quantizer = new Quantization({
method: 'product-quantization',
compressionRatio: 4
});
await db.applyQuantization(quantizer);
// HNSW indexing (150x speedup)
await db.createIndex({
type: 'hnsw',
params: { M: 16, efConstruction: 200 }
});
// Caching
db.setCache(new QueryCache({
maxSize: 10000,
ttl: 3600000
}));
development
Comprehensive truth scoring, code quality verification, and automatic rollback system with 0.95 accuracy threshold for ensuring high-quality agent outputs and codebase reliability.
development
Comprehensive framework for analyzing, creating, and refining prompts for AI systems using evidence-based techniques
data-ai
Implement adaptive learning with ReasoningBank for pattern recognition, strategy optimization, and continuous improvement
development
Create new Claude Code Skills with proper YAML frontmatter, progressive disclosure structure, and complete directory organization