AI agent that uses retrieval-augmented generation as a tool. The agent reasons and acts, the RAG pipeline provides grounded knowledge from a document corpus.
Render it
# CLI
npx @nanohype/sdk render-composite rag-agent --out ./my-app
# SDK
import { LocalSource, renderComposite } from "@nanohype/sdk";
const result = await renderComposite(source, "rag-agent", variables);
# MCP — from an agent
get_composite({ name: "rag-agent" })
What it draws together
Variables
Required
ProjectName string- Project name Must be lowercase kebab-case.
Optional
LlmProvider string — defaults to anthropic- LLM provider
VectorStore string — defaults to pgvector- Vector database backend