.claude/skills/agentdb/when-building-semantic-search-use-agentdb-vector-search/SKILL.md
--- skill_id: when-building-semantic-search-use-agentdb-vector-search name: AgentDB Semantic Vector Search version: 1.0.0 category: agentdb subcategory: semantic-search trigger_pattern: "when-building-semantic-search" agents: - ml-developer - backend-dev - tester complexity: intermediate estimated_duration: 6-8 hours prerequisites: - AgentDB basics - Embedding models knowledge - REST API development outputs: - Semantic search engine - Document retrieval system - RAG-ready infra
npx skillsauth add DNYoussef/ai-chrome-extension AgentDB Semantic Vector SearchInstall 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.
Implement semantic vector search with AgentDB for intelligent document retrieval, similarity matching, and context-aware querying. Build RAG systems, semantic search engines, and knowledge bases.
import { AgentDB, EmbeddingModel } from 'agentdb-vector-search';
// Initialize
const db = new AgentDB({ name: 'semantic-search', dimensions: 1536 });
const embedder = new EmbeddingModel('openai/ada-002');
// Embed documents
for (const doc of documents) {
const embedding = await embedder.embed(doc.text);
await db.insert({
id: doc.id,
vector: embedding,
metadata: { title: doc.title, content: doc.text }
});
}
// Search
const query = 'machine learning tutorials';
const queryEmbedding = await embedder.embed(query);
const results = await db.search({
vector: queryEmbedding,
topK: 10,
filter: { category: 'tech' }
});
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