RAG Solution Architect
by Nada Ahmed
A practical RAG engineering copilot for planning reliable knowledge assistants, implementing ingestion and retrieval, and debugging quality issues.
$5
RAG Solution Architect
Example session with this skill installed
I need a RAG architecture for a technical support bot using n8n and Supabase. It needs to handle markdown files from GitHub and provide citations.
- Read your context and instructions
- Compiled the rag solution architect
I will design a RAG architecture optimized for technical documentation using n8n for the pipeline and Supabase (pgvector) for storage.
Technical Support RAG Architecture
| Stage | Component | Configuration Details |
|---|---|---|
| Ingestion | n8n GitHub Trigger | Pulls .md files; extracts repo, path, and last_updated. |
| Processing | Markdown Splitter | Structure-aware chunking by H2/H3 headers to keep context intact. |
| Embedding | text-embedding-3-small | 1536 dimensions; normalized vectors for cosine similarity. |
| Storage | Supabase pgvector | Table with content, embedding, and metadata (url, title). |
| Retrieval | RPC Function | Matches query embedding; applies similarity threshold > 0.78. |
| Generation | LLM with Citations | Prompt restricted to context; mandatory format: [Source Title](URL). |
Implementation Snippet (Supabase Schema)
-- Enable the pgvector extension
create extension if not exists vector;
-- Create the documentation chunks table
create table doc_chunks (
id uuid primary key default gen_random_uuid(),
content text not null,
metadata jsonb,
embedding vector(1536)
);
-- Index for similarity search
create index on doc_chunks using ivfflat (embedding vector_cosine_ops);
Next steps
- Set up the n8n GitHub node to fetch your specific repository branch.
- Define the Supabase service-role credentials in your n8n environment variables.
- Run a test ingestion of 5 files to verify chunk boundaries in the database.
Connects securely to your tools. The creator never sees your data.
About this skill
RAG systems often fail in production because of poor chunking strategies, mismatched embedding dimensions, or hallucinations caused by weak retrieval. This skill provides a systematic engineering framework to design, implement, and debug production-ready knowledge assistants.
What it does
- Architectural design builds custom pipelines covering source acquisition, parsing, chunking, and grounded generation.
- Ingestion engineering configures structure-aware chunking and metadata strategies to preserve document context and access controls.
- Vector optimization selects embedding models and configures vector database indexing with specific dimension matching.
- Retrieval tuning implements hybrid search, metadata filtering, and top-k optimization based on factual evaluation.
- Systematic troubleshooting diagnoses failures across the pipeline, from extraction errors to citation mapping issues.
How it works
- Discovery defines data sources, corpus size, query patterns, and technical constraints.
- Design produces a multi-stage architecture covering ingestion, indexing, and retrieval flows.
- Implementation generates specific configuration or code for components like n8n nodes or Supabase schemas.
- Evaluation creates test sets to verify answer faithfulness, retrieval relevance, and permission boundaries.
Frameworks & tools
The skill specializes in n8n for workflow automation and Supabase/pgvector for storage, but adapts to Pinecone, Qdrant, Weaviate, Chroma, and Elasticsearch. It works with standard embedding models and LLM providers.
Why this beats prompting it yourself
Generic prompts often skip the critical separation between ingestion and retrieval or ignore metadata-level security. This skill enforces strict engineering rules for chunking, dimension matching, and citation integrity that prevent common production regressions.
Use cases
- Build an automated PDF ingestion pipeline with n8n and a vector database.
- Debug why an existing RAG assistant is hallucinating or ignoring specific documents.
- Design a multi-tenant knowledge base with row-level security and metadata filters.
- Evaluate the impact of different chunking sizes on retrieval accuracy.
Known limitations
Does not host infrastructure or execute live cloud deployments. Requires manual provision of API keys and environment variables. Code generation assumes the user provides target versions.
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 10 days ago
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
New in LLM Ops
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.