Back to skills
SKILL.md
Vector Database Architecture
ASecurityEnforce 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
Security analysis
100/100Pro scans all 4 files and shows the line behind each finding
npx -y skills add iDorgham/Workspace-Factory --skill vector-database-architecture --agent claude-codeAre you the author of Vector Database Architecture?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/idorgham-vector-database-architecture)---
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.md
- core.py
- manifest.yaml
- tests/test_core.py
Attribution
Related skills
View all in ai-agents βComments
Loading commentsβ¦
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.