AgentDB Vector Search

Implement semantic vector search with AgentDB for document retrieval and similarity matching.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/dmuhoro/EasyTutor --skill agentdb-vector-search-dmuhoro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: AgentDB Vector Search
Source: https://github.com/dmuhoro/EasyTutor/tree/main/archive/.claude/skills/agentdb-vector-search
Command: npx skills add https://github.com/dmuhoro/EasyTutor --skill agentdb-vector-search-dmuhoro

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires agentdb, agentic-flow.

What problem does it solve? Building semantic search and RAG pipelines requires a vector database that stores embeddings, indexes them efficiently, and retrieves relevant context quickly. This Skill provides CLI commands and TypeScript API patterns for implementing vector search with AgentDB, including HNSW indexing, quantization, and hybrid metadata filtering. ## Core Features & Use Cases - Vector Storage & Search: Initialize databases with configurable dimensions (1536, 768, 384), store documents with embeddings, and run similarity queries with cosine, euclidean, or dot-product metrics. - Memory-Efficient Quantization: Apply binary (32x), scalar (4x), or product (8-16x) quantization to reduce memory footprint for large vector collections. - RAG Pipelines: Retrieve top-k relevant chunks with MMR diversity and inject them into LLM prompts for grounded answers. - Use Case: Build a knowledge base where documents are embedded via OpenAI or sentence-transformers, stored in AgentDB, and queried semantically to provide context for a chatbot answering questions about your documentation. ## Quick Start Initialize an AgentDB vector database with npx agentdb@latest init ./vectors.db, then store document embeddings and run a similarity query to retrieve the top matching documents.

Frequently Asked Questions about AgentDB Vector Search

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

FAQPage Schema
How do I set up vector search with AgentDB?

Initialize a database with npx agentdb@latest init ./vectors.db, optionally specifying --dimension for your embedding model. Then store documents with embeddings via the CLI import command or the TypeScript createAgentDBAdapter API, and query with vector similarity search.

How do I build a RAG pipeline with vector search?

Embed the user question, retrieve the top-k similar document chunks from AgentDB with a similarity threshold around 0.7, and inject the retrieved text into the LLM prompt as context. The adapter's retrieveWithReasoning method supports MMR for diverse results.

What embedding dimensions does AgentDB support?

AgentDB supports configurable dimensions set at initialization: 1536 for OpenAI ada-002, 768 for sentence-transformers, and 384 for all-MiniLM-L6-v2. The database dimension must match your embedding model's output size.

Does AgentDB support metadata filtering with vector search?

Yes, hybrid search combines vector similarity with metadata filters such as category and date ranges. You pass a filters object alongside the query and limit to narrow results by structured fields.

Why is my vector search using too much memory?

High memory usage comes from storing full-precision vectors. Enable binary quantization for 32x reduction, scalar for 4x, or product quantization for 8-16x reduction by setting quantizationType in the adapter configuration.

Why are my vector search results irrelevant?

Poor relevance usually stems from a low similarity threshold or mismatched embedding dimensions. Raise the threshold toward 0.8, verify your database dimension matches the embedding model, and enable MMR to reduce redundant results.