Skip to content
Back to skills

Vector Database Architecture

ASecurity

Enforce professional standards for the design and deployment of Vector Databases (Pinecone, Milvus, Weaviate, PGVector). This skill provides the "Memory Layer" for RAG (Retrieval-Augmented Generation) systems, ensuring sub-second semantic retrieval across multi-million vector sets.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
ai-agentsgodatabaseperformance

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add iDorgham/Workspace-Factory --skill vector-database-architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vector Database Architecture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vector Database Architecture
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/idorgham-vector-database-architecture/badge)](https://www.skillsdirectory.com/skills/idorgham-vector-database-architecture)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
type: Skill
subagents: [core-validator, integrity-bot]
agents: [master-guide, swarm-router]
dependencies: [core-orchestration, global-sync]
version: 1.0.0
---



# πŸ“ Vector Database Architecture (Omega-tier)


## Purpose
Enforce professional standards for the design and deployment of Vector Databases (Pinecone, Milvus, Weaviate, PGVector). This skill provides the "Memory Layer" for RAG (Retrieval-Augmented Generation) systems, ensuring sub-second semantic retrieval across multi-million vector sets.

---

## Technique 1 β€” High-Performance Indexing

### HNSW vs. IVF-Flat
- **HNSW (Hierarchical Navigable Small World)**: Use for low-latency, high-accuracy queries. Ideal for production and real-time bots.
- **IVF-Flat**: Use for high-recall scenarios with restricted memory budgets.

### Index Compression
- **Scalar Quantization / Product Quantization (PQ)**: Use to reduce the memory footprint of vectors by up to 90% without significant loss in recall accuracy.

---

## Technique 2 β€” RAG Optimization (Hybrid Search)

### The "Obsidian" Retrieval Loop
- **Step 1: Semantic Search**: Retrieve top-k results using Vector Embeddings.
- **Step 2: BM25 / Keyword Search**: Retrieve matches using traditional token-matching (essential for technical terms/names).
- **Step 3: Reciprocal Rank Fusion (RRF)**: Re-rank the combined results to provide the most semantically and contextually relevant data to the LLM.

---

## πŸ›‘οΈ Critical Failure Modes (Anti-Patterns)

| Anti-Pattern | Result | Correction |
| :--- | :--- | :--- |
| **Missing Chunk Overlap** | Logic cut-off at boundaries | Ensure 10-20% sentence-level overlap between vector chunks. |
| **Embedding Drift** | Recall degradation | Ensure the `Embedding Model` used for ingestion matches the query model exactly. |
| **Ignoring Meta-Filters** | Irrelevant results | Use "Metadata Filtering" (e.g., `Category: Finance`) to narrow the search space before vector math. |

---

## Success Criteria (Vector QA)
- [ ] Query latency < 300ms for 1M+ vectors.
- [ ] Recall accuracy verified against "Ground Truth" question sets.
- [ ] Hybrid search active (Vector + Technical Keyword).
- [ ] Namespaces used to isolate distinct datasets (e.g., separating "Public Docs" from "Private Contracts").

Files in this skill

  • SKILL.md2.2 KB
  • core.py3.7 KB
  • manifest.yaml582 B
  • tests/test_core.py2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents β†’

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.