Console ↗

Cookbooks

Explore a workflow, run its request in Playground, then apply its answers in your own code.

Parallel questionsAsk independent questions about one ticket in a single forward pass. Each answer has its own name.Routing by confidenceChoose a queue and inspect its probability distribution. Evaluate a review cutoff on held-out tickets before routing automatically.Function selectionChoose an operation from your application’s catalog. Validate its arguments in code before calling the selected function.Citation checkingPass both the claim and the quoted passage as state. Route unsupported or ambiguous claims to an editor.Filter retrieved passagesRate a retrieved passage against the original question. Keep the score alongside the passage identifier for downstream ranking.Detect missing categoriesA Choice must select among its options. Add a separate coverage question to catch inputs that fall outside the taxonomy.Hierarchical classificationClassify the broad topic first, then send a second question with labels for just that topic.Composite scoringBreak a quality judgment into individual dimensions. Combine them with weights appropriate to your application.Verify generated answersAsk whether a draft is grounded in the supplied evidence. Check completeness separately from factual agreement.Match catalog entriesCompare structured product records, including size and model numbers. Ambiguous matches should be reviewed before merging.Resolve datesProvide a reference date and the candidate dates. Leave room for ambiguity when the text has no precise deadline.Suggest a skillRank a small catalog of capabilities against a user request. Ask independently whether the selected capability is sufficient.SDE cascadeVerify a first-pass extraction against the source. Send fields with weak support to a second pass.Self-consistencyEvaluate possible answers against the same evidence with independent probability estimates.Guardrails for LLMsCheck an assistant's proposed reply against the user's request and the support policy before releasing it.Simple memory systemSeparate a durable preference from a one-off instruction before adding it to a profile.Classification using confidenceAssign a description to a narrow catalog category, with a broader category available for uncertain cases.Live chat filteringApply distinct moderation rules to a chat message while preserving ordinary discussion.Pre-parsed value extractionEnumerate candidate spans before asking which one belongs to the target field.Structure recoveryRecover document layout from line breaks using a small set of block types.Shopping cartResolve a customer's order against a finite menu before computing a price.Reading scanned documentsRead a date from a visitor pass and localize the field for review.OCR confidence and bounding boxesLocate a product label and check an OCR hypothesis against its image.Feeder-camera visit logTurn a sequence of observations into visit intervals with species and presence fields.Re-ranking search resultsRank a shortlist by its ability to answer the query, preserving a stable candidate ID.Choosing from a large catalogNarrow a large inventory to a small candidate set over several passes.Line-by-line searchReturn a stable line identifier for evidence within a document.Live presenter notesTrack which talking points have already been covered in a transcript.Self-consistency for choicesMeasure how often a category assignment changes across repeated evaluations.Feature discoveryTurn candidate questions into measurable features and test them on held-out examples.