RAG Stack
by Akmal Haziq
Gated, eval-driven workflow for building production RAG with LangChain.js, LangGraph.js, Langfuse and Supabase pgvector.
$9
RAG Stack
Example session with this skill installed
Build a document Q&A bot over our 300 product manuals for the support team.
- Read your context and instructions
- Compiled the rag stack
Starts Phase 0: creates RAG_STATUS.md, asks 3 intake questions (end goal, users/channel, success metric), then proceeds phase by phase — golden set, pilot ingestion, retrieval tuning — reporting metrics vs targets after every experiment.
Connects securely to your tools. The creator never sees your data.
About this skill
Build every RAG system the same way: clarify first, measure before building, test on a pilot before embedding everything, and never advance a phase until its gate passes. Langfuse is where everything is observed: traces, prompts, datasets, experiments, scores, and human annotation.
| Layer | Tool | Why it matters |
|---|---|---|
| Loading, splitting, embeddings, retrievers, LLM calls | LangChain.js (@langchain/*) | Every LLM/embedding call goes through LangChain so the Langfuse callback traces it |
| Orchestration — every runtime flow, even the minimal one | LangGraph.js | One graph shape from Phase 5 to production; nodes are traced spans |
| Tracing, prompt management, datasets, experiments, scores, annotation queues | Langfuse (JS/TS SDK v5) | Single place to track performance and review chats |
| Vector store | Supabase pgvector by default; larger corpora → options in references/vector-stores.md | Hybrid search, filters and access control in one Postgres |
| API / runtime / deploy | Node.js + TypeScript + Fastify on Railway | |
| LLM | Anthropic Claude via @langchain/anthropic (model ID from env) |
Never substitute LlamaIndex, Haystack, LangSmith, a raw provider SDK, or a
hand-rolled framework unless the user explicitly asks. Never pick a vector
store other than pgvector on your own: if the size check says the corpus is
large, present the options from references/vector-stores.md and let the
user decide. If the user asks for Python, use the Python equivalents.
APIs in this stack change fast. Before writing code, check current docs for package versions and import paths. Treat code in references/ as patterns.
Opinionated stack: does not cover LlamaIndex, Haystack or LangSmith unless asked. Code in references is patterns, not a runnable repo; npm scripts assume the rag-stack template layout.
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 14 days ago
- Accounts
- Supabase (pgvector)
Langfuse account
Anthropic API key
OpenAI API key (embeddings)
- Software
Node.jsTypeScripttsx
- Optional
- FFmpegCohereorVoyage API keyRailway
Permissions
Allowed Hosts
File Scopes
Reads LANGFUSE_*, Supabase, Anthropic and OpenAI keys from env in the user's own project.
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.