Works with the AI Agents you already use
Enterprise-RAG-Architect
Critical principal architect for Tri-Hybrid RAG, enterprise caching, vector DB internals, zero-regex security, and TDD workflows.
$15
Enterprise-RAG-Architect
Example session with this skill installed
I need to build a RAG system for 100k technical manuals. I'm using Python and ChromaDB, but I'm worried about filtering by department ID. Can you review this stack?
- Read your context and instructions
- Compiled the enterprise-rag-architect
I have audited your proposed stack. ChromaDB's post-filtering will likely cause recall collapse (k-starvation) as your department-specific document subsets grow. I recommend switching to a database that supports filterable HNSW with Roaring Bitmaps for sub-millisecond ACL pruning.
Architectural Audit & Recommendations
| Layer | Proposed Stack | Identified Risk | Recommended Alternative |
|---|---|---|---|
| Vector Storage | ChromaDB | Recall collapse on strict filters | Qdrant (Filterable HNSW) |
| ACL Filtering | Metadata Post-filter | O(n) latency scaling | Roaring Bitmaps (uint32 bitsets) |
| Ingestion | Naive Regex Cleaning | Silent formula truncation | Docling (Structural Parsing) |
| Retrieval | Single Vector | Low recall on part numbers | Tri-Hybrid (BM25 + Dense + Graph) |
from pydantic_settings import BaseSettings, SettingsConfigDict
from pydantic import Field
class EnterpriseRAGConfig(BaseSettings):
model_config = SettingsConfigDict(env_prefix="RAG_ARCH_", frozen=True)
# Vector DB Internals
vector_db_url: str = Field(..., description="Qdrant/Milvus endpoint")
enable_roaring_bitmaps: bool = Field(default=True)
# Retrieval Hyperparameters
dense_top_k: int = Field(default=10, ge=1, le=50)
sparse_boost: float = Field(default=1.5, ge=0.0)
# Security Delimiters
sandbox_tag_prefix: str = Field(default="context_layer_")
Next steps
- Review Blueprint: I have generated a detailed performance matrix in
docs/plans/architecture_comparison.md.
Select Mode: Reply auto to scaffold the Qdrant-based retrieval engine with Roaring Bitmap integration, or interactive to tune the embedding model selection.
3. Verify Compliance: Run pytest tests/security to validate the zero-regex sanitization layer.
Connects securely to your tools. The creator never sees your data.
About this skill
Production RAG systems fail when naive vector lookups meet complex enterprise requirements like strict ACLs and technical nomenclature. This skill acts as a principal AI architect to design, benchmark, and harden RAG systems. It replaces fragile regex-based cleaning and sequential retrieval with concurrent pipelines, Roaring Bitmap filtering, and multi-tier caching.
What it does
- Tri-Hybrid Architecture designs concurrent retrieval pipelines combining Lexical (BM25), Semantic (Dense), and Relational (GraphRAG) brains.
- Advanced Filtering implements Roaring Bitmap indexes and pre-filtering to prevent recall collapse during metadata or ACL lookups.
- Enterprise Caching builds four-tier systems including exact L2 hits, L3 semantic vector caching, and content-addressable ingestion caches.
- Security Hardening enforces zero-regex text processing and structural prompt-injection shielding using randomized XML sandboxing.
- Infrastructure Benchmarking generates comparison matrices for vector databases (Qdrant, Milvus, pgvector) and model providers based on latency and cost.
How it works
- Discovery & Audit analyzes your current stack to identify bottlenecks like sequential retrieval or post-filtering pitfalls.
- Architecture Blueprinting generates a formal plan in
docs/plans/documenting tech stack selections and performance targets. - Implementation & Auto-Mode scaffolds modular codebases or autonomously selects optimal defaults when you invoke
auto. - Verification Gate runs unit and integration tests using condition-based polling instead of fragile delays.
Frameworks & tools
Python, Node.js, TypeScript, Qdrant, Milvus, Redis, Valkey, Docling, GLiNER, Pydantic, Zod, and various LLM providers.
Why this beats prompting it yourself
Generic prompts often produce naive LangChain wrappers that suffer from "k-starvation" and security debt. This skill enforces strict engineering mandates like zero-regex processing and deterministic invalidation protocols that standard LLMs overlook.
Use cases
- Building a technical document assistant for 500k+ PDFs requiring per-department access control.
- Migrating a prototype RAG app to a production-grade system with sub-millisecond candidate pruning.
- Auditing a codebase to replace fragile regex cleaners with structural parsers for academic or symbolic text.
Known limitations
Requires a local or containerized runtime to execute live vector database latency benchmarks and integration test suites.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.
Requires a local or containerized runtime to execute live vector database latency benchmarks and integration test suites.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 22 days ago
- Software
uv (Python tool runner)pytest
Docker
Permissions
File Scopes