Free AI template

RAG chunking for a help page

A help page cut into chunks under a token budget, with questions that must find their answer in the top results.

It opens with this template loaded and runs in your browser. You don't need an account to use it; a free account saves your work and exports it.

The job it does

When you set up retrieval over your documents: pick a chunk size and overlap that keep answers whole and calls cheap. It comes with its own checks, so after you change it you can see at a glance that it still does the job.

How to use it with your own data

Upload your own .txt or .md document, then write two or three questions it must answer.

What's inside

This is the template exactly as the AI Lab opens it, read-only. Open it to run it, change it and export it.

  • 10 chunks of 3 sentences, overlap 1
  • Top 3 results per question
The brief: Help page chunking

A help page cut into chunks for retrieval: every chunk stays under 70 tokens, and each question finds its whole answer in the top 3 chunks. Upload your own document and write the questions your users ask.

Done when
  • Every chunk is at most 70 tokens
  • Searching "How do I remove a saved card?" puts "To remove one, open Payments, " in the top 3
  • Searching "Can I get a company receipt with a tax n" puts "For a company receipt with a t" in the top 3
The document
Mangrove app help: account and payments

Changing your phone number. Open Account, then Phone number, and enter the new number. We send a 6-digit code to the new number; it expires after 10 minutes.

Saved cards. You can save up to 5 cards. To remove one, open Payments, swipe left on the card and tap Remove. A card used for an order that is not delivered yet cannot be removed until the order is complete.

Mobile wallets. Link a wallet in Payments, then Add a wallet. Payments from a wallet are confirmed in the wallet app; if you do not confirm within 5 minutes, the order is cancelled and nothing is charged.

Cash on delivery. Cash on delivery is available for orders up to $150. Riders carry change for notes up to $50.

Receipts. Every receipt is in Orders, under the order, as a PDF. For a company receipt with a tax number, add the company details in Account before you place the order; receipts cannot be changed afterwards.

Closing your account. Open Account, then Privacy, then Close account. Your order history is kept for 7 years for tax reasons, but your name, phone and addresses are removed within 30 days.

The lesson behind it

Learn why it works, with a podcast and a quiz for each lesson.

  • Agent flow with guardrails

    An order-status agent with a step limit, input and output guardrails and read-only tools, that passes the validator.

  • Cost estimate for an AI feature

    A prompt, the expected reply length and traffic, and what it costs per call, per day and per month on each model.

  • Prompt review

    A support prompt in parts (role, task, context, rules, format, an example) that passes the linter, with its token count and cost.

All AI templates · Every template