Cookbooks
Cookbooks are end-to-end recipes: a concrete problem, the request, the response, and the code that acts on it.
- Customer-support routing — refund eligibility, department routing and urgency in one call.
- Content-moderation guardrails — screen messages with probabilities and severity.
- Passage re-ranking — score a shortlist and keep the best passages.
- Document classification with confidence — classify into a hierarchy and fall back when unsure.
How to read a cookbook
Each recipe follows the same structure:
- Problem — the business situation.
- Request — the exact
POST /v1/systemonebody. - Response — a representative typed answer.
- Code — the logic that turns the answer into an action.
Adapt the thresholds and label sets to your domain; the shapes stay the same.
Next steps
- Patterns — the reusable architectures behind these recipes.
- Training overview — teach the model your labels.