Skip to content

RAG-Powered Agent

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, and the Platform tenant chart's ModelGateway serves both their model routes.

Namerag-agent
Version0.1.0
Tagsai, rag, agent, retrieval
Sourcecomposites/rag-agent.yaml

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

TemplateRendered atNotes
monoreporootthe root project
agentic-looppackages/agent
rag-pipelinepackages/rag
ts-serviceapps/api
module-auth-tspackages/auth
module-database-tspackages/db
module-storage-tspackages/storage
eval-harnesspackages/evals
k8s-app-tenantinfra

Variables

Required

ProjectName string
Project name Must be lowercase kebab-case.

Optional

LlmProvider string — defaults to gateway
LLM provider the packages deployed on the substrate call: gateway, the Platform ModelGateway, which holds the Bedrock role there, so none of them holds a model credential. The eval harness runs on a CI runner and keeps its own bedrock default
VectorStore string — defaults to pgvector
Vector database backend
Tenant string — defaults to ${ProjectName}
Owning team: the tenants-<team> namespace the Platform, BudgetPolicy and ModelGateway CRs are applied in, the Platform's spec.tenant, and the team label on the tenant chart's resources and telemetry
Image string — defaults to ${ProjectName}
Container image repository the tenant chart deploys, without a tag; each values-<env>.yaml pins one
AppMetric string — defaults to http
Prefix of the RED series the tenant chart's Grafana dashboard reads: <prefix>_requests_total, <prefix>_errors_total and <prefix>_request_duration_seconds. The default, http, is the prefix apps/api (a ts-service) emits them under