What This Example Is
icrl-ts/web-example is a Next.js app that demonstrates feedback-driven training with Convex-backed persistence and configurable LLM providers.
1. Install Dependencies
Fromicrl-ts/web-example/:
2. Set Up Convex
convex/_generated/* and a deployment URL.
3. Configure .env.local
Required:
- If
LLM_PROVIDERis unset, selection order is: Anthropic first, then Gemini Vertex. - Unsupported
LLM_PROVIDERvalues fail configuration checks.
4. Start Dev Server
http://localhost:3000.
5. Data Model (Convex)
The web demo uses these tables:databasestrajectoriescurationMetadataembeddingsexamplessuggestionCache
icrl-ts/web-example/convex/schema.ts.
6. Production Deploy
- Deploy Next app (for example Vercel).
- Configure same env vars in deployment settings.
- Keep
NEXT_PUBLIC_CONVEX_URLaligned with production Convex deployment.

