By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
Helios also reviews supplier contracts. It extracts eight clauses from each one, and field agreement on the 240-case probe set is 78% against a 92% bar. Three remedies are on the table: add worked examples, ask the model to reason before it answers, or return a strict JSON schema, a machine-readable output contract. Each adds tokens, latency, or both.
The transcripts show the shape of the failure. When a renewal clause is split across section 4 and section 9, the extractor returns section 4 alone. When the answer is short, the model pads it into a paragraph. When a clause is a variant of termination, it lands in other. Three failure classes, three different techniques.
Failures fall into four classes, and the class decides the technique. A schema is the machine-readable description of the output shape. A worked example is one input and its correct output, placed in the prompt. Native thinking is reasoning the model does before it answers, inside a budget you set.
| Failure class | Signal in the transcripts | Technique that addresses it | Technique that does not |
|---|---|---|---|
| Shape | Prose where fields are required; the loader rejects the answer | Structured output, validated in code | More examples, which do not enforce shape |
| Knowledge | A label or rule the prompt never defines | Write the definition, then one example on each side of it | Native thinking, which cannot invent a definition |
| Reasoning depth | The answer needs facts from two places, and one is dropped | Native thinking with a budget, or an explicit reconcile step | A schema, which accepts a well-shaped wrong answer |
| Boundary | Two labels are near neighbours and swap between runs | Three to five worked examples that sit on the boundary | More prose rules, which move the boundary without pinning it |
Cost order is stable: a clear instruction is cheaper than an example, an example is cheaper than a reasoning pass, and a reasoning pass is cheaper than a second call. Climb only when the cheapest fails the bar.
Few-shot prompting places a handful of worked examples in the prompt. The examples teach where a line sits, which is why six examples of the easy case teach nothing. Three examples that sit on the disputed boundary between termination and expiry teach the label.
Examples cost tokens on every call unless you cache them, so keep the set small and stable. An example that changes per customer destroys the cache and adds nothing. An example that is merely well written teaches the model to copy its surface, not its judgement.
Prompted reasoning asks the model to write its steps in the response before the answer. You can audit the trail and show it to a reviewer, and the steps consume output tokens that reach the customer if the answer is passed through unedited.
Native thinking, also called extended thinking, goes further: the model reasons inside a token budget you set before it answers. It raises accuracy on multi-constraint diagnosis without putting scratch work in the answer. Depending on the model and the API version, you may receive a summary of that reasoning rather than the full text, so do not design an audit trail around it.
Pick prompted reasoning when the reasoning is the artifact, such as a decision memo a human will review. Pick native thinking when the reasoning is a means to a better answer.
{
"type": "object",
"additionalProperties": false,
"required": ["renewal_term_months", "notice_days", "source_sections", "confidence"],
"properties": {
"renewal_term_months": {"type": "integer", "minimum": 0, "maximum": 120},
"notice_days": {"type": "integer", "minimum": 0, "maximum": 365},
"source_sections": {"type": "array", "items": {"type": "string"}, "minItems": 1},
"confidence": {"type": "string", "enum": ["high", "medium", "low"]}
}
}The loader can reject a wrong shape before the record reaches the contract system, which turns a silent data problem into a retry. It cannot reject a confidently extracted 12 months from the wrong section.
One caution about measurement. The probe set has 240 cases, so one case is 0.4 points. A one-point move is noise until you read which cases changed, so read the failing cases, not only the total.
Here are three failures from the contract service. For each one, name the failure class, the cheapest technique that addresses it, and the cost you accept.
Then write one sentence per fix that names the cost: added input tokens, added output tokens, added latency, or a second call.
Key takeaways
Classify the failure first: shape, knowledge, reasoning depth or boundary.
Structured output fixes shape and cannot fix judgement.
Few-shot examples pin a boundary; examples of the easy case teach nothing.
Prompted reasoning is auditable; native thinking may arrive as a summary.
Change one technique per run, or you cannot attribute the improvement.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.