RAG Architect
Software development skill, available on Zeplik
RAG Architect is a ready-to-run software development skill on Zeplik. Chunking, embeddings, hybrid search, reranking, grounded answers. Ask in plain language and Zeplik applies the skill's method for you inside the conversation, on whichever AI model you prefer.
The RAG Architect skill loads automatically when your request matches it, or you can invoke it directly by typing /rag-implementation in any chat. It works with attachments, connectors, and any model that supports the task, so you get the same expert method every time without setting anything up.
What the RAG Architect skill can do
- Recommend vector database and embedding model for your stack and scale
- Design chunking strategy with token size, overlap, and metadata enrichment
- Diagnose failing retrieval queries by inspecting chunks and pinpointing failure stage
- Specify hybrid search, reranking, and grounded generation prompts with citations
Try these prompts on Zeplik
Pick a prompt to open it in the Zeplik app. If you are not signed in yet, your prompt is waiting for you the moment you do.
How the RAG Architect skill works
/rag-implementation
Design and debug Retrieval-Augmented Generation systems: vector store selection, embeddings, chunking, retrieval strategy, reranking, and grounded generation with citations.
Usage
/rag-implementation $ARGUMENTS
What I Need From You
Your use case (doc Q&A, support bot, research tool), corpus size and type, stack constraints, and -- if debugging -- a failing query with the chunks it retrieved and the answer it produced.
Architecture Overview
The pipeline: ingest -> chunk -> embed -> store -> retrieve -> (rerank) -> generate with context. Most quality problems live in chunking and retrieval, not in the LLM.
Component Choices
Vector databases:
- Pinecone: managed, serverless, scales easily
- Weaviate: open source, built-in hybrid search
- Qdrant: fast filtered search
- Chroma: lightweight, great for local development
- pgvector: PostgreSQL extension; the right answer if you already run Postgres and have < ~10M vectors
- Milvus: high performance on-premise at large scale
Embedding models: voyage-3-large (recommended for Claude-based apps), voyage-code-3 for code search, text-embedding-3-large/small for OpenAI stacks, bge-large-en-v1.5 for open-source local deployment, multilingual-e5-large for multi-language corpora. Never mix embedding models between indexing and querying.
Chunking: start with recursive character splitting around 500-1000 tokens with 10-15% overlap. Respect document structure (split on headings/paragraphs before sentences). For structured docs, prepend section titles and doc metadata to each chunk so retrieved chunks are self-describing.
Retrieval Strategies
- Dense retrieval: embedding similarity; the default.
- Sparse retrieval: BM25/keyword; wins on exact terms, IDs, and jargon.
- Hybrid search: weighted fusion of dense + sparse; the best default for production. Start around 0.7 dense / 0.3 sparse and tune.
- Multi-query: have the LLM generate 2-3 query rephrasings and merge results; helps with vocabulary mismatch.
- HyDE: generate a hypothetical answer document and embed that; helps when questions and documents use different registers.
Retrieve k=4-8 chunks for generation; retrieve more (k=20) if you rerank.
Reranking
Reordering 20 candidates down to the best 4 is the highest-leverage quality upgrade in most RAG systems. Options: cross-encoder models (e.g. ms-marco-MiniLM), a managed rerank API, MMR for diversity + relevance balance, or LLM-based relevance scoring for low-volume/high-value queries.
Grounded Generation
Prompt shape: instructions, then retrieved context clearly delimited, then the question. Require: answer only from the context, say "I cannot answer from the provided documents" when the context lacks the answer, and cite which source each claim came from. Pass source metadata (title, section, URL) alongside chunk text so citations are real.
Debugging Bad Retrieval
- Inspect what was actually retrieved for the failing query -- most "LLM is wrong" reports are retrieval failures.
- If relevant chunks exist but are not retrieved: try hybrid search, multi-query, or better chunk metadata.
- If retrieved chunks are relevant but the answer is wrong: chunks may be truncating key info (increase size/overlap) or the prompt may not enforce grounding.
- If irrelevant chunks rank highly: add a reranker; check for boilerplate-heavy chunks polluting the index.
- Build a small eval set (query -> expected source doc) and measure retrieval hit rate before and after each change.
Common Pitfalls
- Chunks too large (dilute similarity) or too small (lose context)
- No metadata filtering when the corpus spans products/versions/dates
- Indexing boilerplate (headers, footers, nav) that outranks content
- Skipping the "no answer in context" path, guaranteeing hallucinations
- Evaluating end-to-end only, never measuring retrieval in isolation
Output
A concrete architecture recommendation (store, embedder, chunking params, retrieval strategy, reranker) with rationale for your scale and stack, or a ranked diagnosis with fixes for the retrieval failure you pasted.
How to use the RAG Architect skill
Sign in to Zeplik
Create a free Zeplik account or sign in. New accounts start with free credits, so you can try the RAG Architect skill right away.
Describe your software development task
Ask in plain language, or type /rag-implementation to invoke the skill directly. Zeplik recognizes the RAG Architect skill and applies its method.
Review and refine the result
Zeplik returns a clear, structured answer. Ask follow-ups in the same chat to refine it or take the next step.
Source and credit
- Author
- wshobson
- License
- MIT
Adapted from the open-source wshobson/agents project and tuned to run natively on Zeplik. View source on GitHub.
Frequently asked questions
- What is the RAG Architect skill?
- RAG Architect is a ready-to-run software development skill on Zeplik. Chunking, embeddings, hybrid search, reranking, grounded answers. Ask in plain language and Zeplik applies the skill's method for you inside the conversation, on whichever AI model you prefer.
- How do I use RAG Architect on Zeplik?
- Sign in to Zeplik and ask in plain language, or type /rag-implementation in any chat to invoke it directly. The skill applies its method and returns a result you can refine in the same conversation.
- Which AI model does the RAG Architect skill use?
- Any model you choose. Zeplik works across every model in one chat, so the RAG Architect skill runs on your preferred model for the task.
- Where does the RAG Architect skill come from?
- The RAG Architect skill is adapted from the open-source wshobson/agents project (MIT) and tuned to run natively on Zeplik. The original source is linked on this page.
- How much does the RAG Architect skill cost?
- Using the skill is free to start. You only spend Zeplik credits when the assistant runs, and new accounts begin with free credits.
Related software development skills
- .NET BackendBuild ASP.NET Core 8+ backends with EF Core: auth, background jobs, production API patterns
- Advanced Git WorkflowsUse for advanced Git surgery: interactive rebase, cherry-pick, bisect, reflog recovery, and history cleanup before merging. Not for parallel worktree workflows (use using-git-worktrees).
- Adversarial Code ReviewHunt for bugs in code the user shares by assuming defects exist and attacking the code through several distinct lenses, then report severity-ranked findings with evidence. Use for "review this", "what could go wrong", "bug hunt", or pre-merge scrutiny of a change. Read-only, it reports problems and does not rewrite the code. Not for style cleanup (use simplify-code) or for writing new code.
- AI Agent FrameworksUse when building multi-agent systems or agent orchestration -- LangChain/LangGraph, agent team design, task coordination, pipelines. Not for authoring a Zeplik skill (use skill-creator).
- Algolia SearchAdd Algolia search: indexing strategies, React InstantSearch, relevance tuning, search-as-you-type
- Android CI/CDAutomate Android CI/CD to Google Play: keystore, GitHub Secrets, multi-stage release workflow for RN, Flutter, native
More on Zeplik
Try RAG Architect on Zeplik
Every model, one chat. Bring the RAG Architect skill into your next conversation and let the assistant do the work.