In-context learning at scale: what Jev changes
Share:

An 84,000-token casebook. Jev choosing examples for another Jev call. Eventum’s experiments show two ways to make in-context learning work - and why the economics could open the door to mass customization without mass fine-tuning.
Decision Models in Practice
In-context learning works with Jev. It can make productive use of a substantial long-context casebook, and it can help choose a smaller set of examples that improves another Jev call.
At Eventum, an official technology partner of TypeSafe, we tested both approaches. The larger question was practical: how much task-specific behavior can we get from examples supplied at runtime, without changing the model’s weights?
On BANKING77, a 77-category banking-intent task, Jev scored 80.75% without examples in our original baseline and 91.36% with 2,446 labeled examples in a later full-casebook experiment. The larger input used approximately 84,000 tokens. Across the same 3,080 test cases, that meant 327 additional correct classifications, at about $0.0035 per decision in recorded input-token usage.

Figure 1. Zero-shot and many-shot Jev on all 3,080 official BANKING77 test cases. The original no-example run used ordinary mode; the full casebook used extended mode. The cost shown is for full-casebook inference, excluding development and local computation.
We also used Jev to choose examples for another Jev call. That pipeline reached 92.95% on BANKING77, versus 91.95% for a fixed lexical-selection control, and improved results on a second benchmark. It needed only eight examples in the final request.
Together, these findings point toward mass customization without mass fine-tuning: one shared decision model, with different reviewed examples for different customers, policies, and document workflows. Not every task will fit that approach. But Jev makes it inexpensive enough to become a serious engineering option.
Customization in the request, not the weights
A model can understand language without knowing how your organization wants a decision made. What counts as an accepted commitment? Which requests belong in which queue? When does a document establish that a requirement is complete?
Fine-tuning and in-context learning introduce those distinctions in different ways. Fine-tuning updates model weights using task-specific examples. ICL supplies examples alongside the new input and leaves the weights unchanged. Few-shot and many-shot prompting are forms of ICL. Both start with a model that has already been trained. [1] [2]
We call the labeled examples supplied in a request a casebook, and the larger collection from which they can be selected the training library.
The appeal is flexibility. A product can maintain one customer’s criteria and examples separately from another’s while using the same underlying model. A policy revision becomes a new casebook version to evaluate. And the examples can change with the input: a difficult boundary case may need different precedents from a straightforward one. Research on demonstration retrieval explores how to choose examples for that purpose. [4]
Consider signature status. “We sent the agreement for signature,” “our representative signed,” and “both parties signed” describe different states. A useful casebook shows those distinctions, including cases where the record does not establish an answer. The application defines the decision; the examples help communicate it.
Fine-tuning can be the better option for a stable task with enough data and many subsequent predictions. A specialized classifier does not need its training examples repeated on every call. Its training and deployment work can be spread across that workload, and its accuracy may be higher. [3]
ICL trades that weight-based adaptation for runtime flexibility. Its recurring cost has been a major obstacle: a large casebook may be processed again for every decision. More examples also consume context space and inference work without necessarily improving the answer. [2] [3]
Jev changes the cost of that flexibility. The experiments show how to put it to use.
The economics of reading the examples every time
On October 14, 2026, TypeSafe released Jev 1.14 alongside experimental extended-context access. The opt-in mode expands the ordinary 32,000-token per-question allowance to approximately 262,000 tokens. [5] [6]
At the published rate used for our study, $0.042 per million input tokens, a 100,000-token input costs $0.0042 - less than half a cent. There is no separate output-token charge. [6]
| Total input per decision | Input-token cost per decision | Input-token cost for 100,000 decisions |
|---|---|---|
| 32,000 tokens | $0.001344 | $134.40 |
| 100,000 tokens | $0.004200 | $420.00 |
| 262,000 tokens | $0.011004 | $1,100.40 |
Calculated at the rate recorded for the October 16, 2026 study. Inputs include the target, instructions, and examples. These single-stage scenarios exclude retries, development, retrieval infrastructure, and human review.
A workload of 100,000 decisions at 100,000 tokens each processes 10 billion input tokens. That is $420 at this rate. At an illustrative $3 per million input tokens, the same volume would cost $30,000. This is a price illustration, not a comparison of model quality. Caching can also reduce repeated-context costs, so actual deployment comparisons need realistic serving assumptions. [7]
The larger window addresses the other constraint: what fits. It makes room for thousands of short demonstrations or richer collections of full examples. TypeSafe labels extended mode experimental and warns that it can be slower and less accurate than staying within default limits. We pinned jev-1.14.0 and explicitly enabled TypeSafe-Danger-Zone-Long-Context: true for the larger requests. Extended access is also available for Jev 1.13. [5] [6]
Low token cost makes a large casebook affordable. Whether reading it helps is an experimental question.
When the whole casebook was worth reading
The 84K-token result gave us a useful answer. But we also wanted to know whether supplying all those examples helped beyond retrieving a small relevant set.
We fixed the available BANKING77 training pool at 2,446 records and used the same reference prompt, model version, and extended-context mode. One condition received 32 retrieved examples per target; the other received all 2,446. Both were evaluated on every official test case.
The full casebook reached 91.36% accuracy, versus 88.70% for retrieval. It corrected 135 retrieval errors and introduced 53 new ones: a net improvement of 82 decisions. The gain was 2.66 percentage points, with an unadjusted paired 95% interval of 1.82 to 3.54 points.
Recorded input-token usage cost $10.92 for all 3,080 full-casebook decisions, compared with $0.37 for retrieval. The larger book cost more, but still averaged about 0.35 cents per decision.
The added context was not merely tolerated. For this task, the complete casebook was more useful than the tested retrieval procedure.
The right context is not always the largest
On a separate Emotion diagnostic, the result went the other way. With the reference prompt, 32 retrieved examples produced 139 correct answers out of 200 development cases. A random casebook containing approximately 6,388 examples, approaching a 240,000-token packing budget, produced 125.

Figure 2. BANKING77 uses all 3,080 official test cases and a fixed 2,446-record training pool. Emotion uses 200 development cases. Its larger random books also changed category proportions and, depending on configuration, ordering.
The lesson is to treat context construction as part of the system design. Sometimes the model benefits from seeing the whole library. Sometimes a small set of relevant examples serves it better.
That led to our second line of investigation: not just how much Jev reads, but how we choose what it reads.
Smarter context improved all four public tasks
We began with a simple comparison: keep the reference request fixed and add retrieved examples. The tasks covered closely related banking intents, emotions, requests outside a supported intent taxonomy, and document-level contract inference. [8] [9] [10] [11]
Relevant examples improved accuracy on every task.

Figure 3. The same reference request, with and without retrieved examples, evaluated on each complete official test set. These experiments used ordinary context.
We then searched for better ways to present the request, varying wording, layout, category representation, and example ordering.
| Task and official test population | No examples, reference request | Retrieved examples, reference request | Retrieved examples, selected request |
|---|---|---|---|
| BANKING77: 3,080 queries | 80.75% | 88.73% | 90.71% |
| Emotion: 2,000 texts | 60.15% | 71.05% | 74.30% |
| CLINC150: 5,500 requests | 75.18% | 83.58% | 82.95% |
| ContractNLI: 2,091 judgments | 74.75% | 78.72% | 80.97% |
The selected request was chosen on development cases before official testing. All official test records are included.
The search tested 257 named configurations per task and example method. Finalists advanced from 48 search cases to 200 separate confirmation cases. Request selection added a supported gain on BANKING77, Emotion, and ContractNLI, but not CLINC150.
For document tasks, the actual packing of examples matters too. Each ContractNLI target included a complete contract, so only 2 to 28 whole demonstrations fit despite requesting 32. The selected request retained one fewer example on 442 targets. Wording, layout, ordering, and packing together define the configuration being evaluated.
On BANKING77, relevant examples and request design moved accuracy from 80.75% to 88.73% to 90.71%. Next, we asked whether Jev could help build a more useful casebook itself.
Jev choosing examples for Jev
A similarity search finds records that resemble the target. A demonstration selector asks which examples will help make the decision.
Those objectives need not be identical. Two near-duplicate examples may add little together, while a contrasting precedent can make a category boundary easier to distinguish. Our test was whether a Jev-assisted selector could turn that intuition into better final answers.
The pipeline retrieved 32 candidates using TF-IDF, a lexical method based on weighted word and word-pair overlap. Jev scored their estimated usefulness. Code kept the eight highest-ranked examples, then another Jev call classified the target using the full set of possible categories.

Figure 4. The two-stage pipeline. The final call received eight complete examples selected from libraries of 5,996 BANKING77 or 10,792 Emotion records. Both Jev stages used ordinary context.
We compared it with two fixed controls: the first eight lexical matches, and a selection favoring category diversity. All three used the same 32 candidates, eight complete examples, and final classifier prompt.
| Selection method | BANKING77: 3,080 cases | Emotion: 2,000 cases |
|---|---|---|
| First eight lexical matches | 91.95% | 73.10% |
| Category-diverse lexical selection | 89.68% | 72.85% |
| Jev selection | 92.95% | 76.00% |
Jev selection improved all four comparisons. Against the first-eight control, the gains were 1.01 percentage points on BANKING77 and 2.90 on Emotion, calculated before rounding.

Figure 5. Paired 98.75% intervals adjust across the four comparisons. Controls were specified retrospectively; example selection and initial ordering changed together, and the controls were not separately prompt-tuned.
A second model stage, for very little token spend
Selection plus classification accounted for approximately $0.63 in recorded Jev input-token usage across all 3,080 banking decisions, and $0.24 across 2,000 Emotion decisions, excluding development and local retrieval. Including reservations for attempts with unresolved usage gave about $0.66 and $0.29.
At that cost, an extra selection stage becomes a plausible part of the normal workflow, rather than something reserved for a few expensive decisions. Its accuracy benefit and latency still need to justify its place.
Additional complexity did not always help. Supplying histories of previous example effects did not establish a further selector gain. A second selection round also failed to establish an improvement on either complete test, despite roughly doubling hypothetical fresh-call token costs.
Jev gives us more than one useful way to build a casebook: supply thousands of examples when breadth helps, or use Jev to choose a smaller set for the current input. The engineering task is to find the approach that delivers the best results for the application.
Define the decision before optimizing the examples
One of our largest diagnostic gains came from fixing the task definition.
The original CLINC150 rejection category was described only as oos. We had varied the request’s presentation without correcting that weak description. In a later diagnostic, explicitly defining out-of-scope requests raised retrieved-example accuracy from 83.73% to 94.93%.
Correct rejections increased from 265 to 898 of 1,000 unsupported requests. False rejections also increased, from seven to 38 of 4,500 supported requests.

Figure 6. A post-hoc diagnostic on the already-inspected CLINC150 test set, with fresh responses. Its 83.73% baseline is distinct from the original 83.58% reference result.
The practical lesson is straightforward: define the answers before optimizing how examples are selected or presented. Jev’s Choice interface lets an application specify alternatives, criteria, and instructions. [12]
For signature status, fully_executed might require evidence that both parties signed; awaiting_signatures and insufficient_evidence describe different situations. The examples teach those distinctions. The current record must still supply the evidence for the answer.
Choosing between a casebook and a trained model
The training comparisons were task-dependent.
With 616 BANKING77 training examples, Jev reading the full casebook reached 89.32%, versus 83.38% for the tested MiniLM fine-tuning protocol. At 2,446 examples, the scores were 91.36% and 90.88%; the interval for the difference included zero, so this experiment did not establish a winner.
On Emotion, training was decisively stronger: 92.35% for fine-tuned MiniLM, versus 76.00% for the Jev selector, using the same available 10,792-record training library.

Figure 7. The tested training protocols used 96 additional tuning labels. Fixed full-casebook Jev requests used none; the Emotion selector used 248 development labels. The 616-example casebook fits ordinary context, although the reported run used extended mode.
A trained classifier on frozen BGE representations also remained competitive on the larger banking library: 91.92%, compared with 92.95% for the Jev selector. The adjusted comparison did not establish superiority for Jev; configuration selection used 248 development labels for Jev versus 96 for that comparator.
These results argue for choosing the approach, not the ideology. A stable task may favor a compact trained model. A family of changing, customer-specific decisions may place greater value on a shared model with editable casebooks. The training searches here cover specific models and settings, not every possible fine-tuning approach.
Can examples teach a changed policy?
Customer-specific customization requires more than recognizing familiar benchmark labels. We constructed two purchase policies and tested whether examples could communicate a changed rule.
In one illustrative case, an otherwise-eligible $12,597 purchase required review under a $12,000 ordinary approval limit but qualified for approval under an $18,000 limit. With 128 examples and no policy text, Jev returned both correct decisions.
Across facts whose answer changed, current-policy casebooks got both policy decisions right on 20 of 40 numeric cases and 22 of 34 held-out combinations. With other-policy labels, that happened on one case in each group.

Figure 8. Each split contains 128 structured factual records evaluated under two policies: 256 decisions per condition. Jev received examples without policy text; the tree models trained on the same records. Extended mode was enabled for the 512- and 2,048-example conditions.
The examples changed how Jev applied the policy, but learning remained incomplete. At 2,048 examples, Jev scored 192/256 numeric decisions and 176/256 held-out-interaction decisions. Gradient boosting scored 256/256 and 255/256.
This was a test on structured facts, not an operational document workflow. Where facts and rules are already explicit, ordinary code is an appropriate solution. For messy records, the question is whether reviewed examples can help a model apply the organization’s distinctions - and whether updates improve the affected decisions without breaking others.
Turning useful ICL into dependable work
Overall accuracy and automatic acceptance are different engineering questions.
We fitted score thresholds on 200 calibration cases per task. At a target of at most 1% classification errors among accepted calibration cases, neither highlighted selector found a nonempty acceptance set on either task. Under that rule, both accepted no final cases. The threshold used the chosen-category score, not Jev’s separate Choice-confidence field.
The result tells us that better average accuracy did not automatically identify which individual decisions were safe to automate at that strict target. Calibration sample size, category mixture, and tied scores matter. A workflow needs its own acceptance or escalation evaluation, not just a benchmark score.
For document processing, we would evaluate the complete path: source evidence, explicit decision criteria, an authorized and versioned casebook, retrieval or selection, the model’s answer, and the action taken. Keep the evidence and configuration associated with each decision. Restrict examples to the appropriate customer and policy. Test changes before they can affect workflow actions.
The same evaluation must measure latency, throughput, retries, and review effort. Our experiments establish useful classification results and input-token economics; customer-specific reliability and total operating cost require representative workloads.
Mass customization without mass fine-tuning
Many-shot ICL and example retrieval have a substantial research foundation. Earlier work studied large demonstration sets, learned retrieval, and comparisons with fine-tuning. Public Jev-specific work includes AnthusAI’s Few-Shot-Jev experiments and Jev-Mem’s use of Jev for memory and retrieval control. [2] [3] [4] [13] [14]
Our focus was practical: what can an engineering team build with Jev’s examples, context, and pricing? We found useful gains from relevant examples, a productive large casebook, and an inexpensive model-assisted selection pipeline. We also found where extra context and extra calls failed to earn their place.
The larger opportunity is one shared decision model, with different reviewed casebooks for different customers, policies, and workflows. Where the behavior meets the application’s requirements, customization can mean changing explicit criteria and examples rather than maintaining a separate checkpoint for every use case.
That shifts the work. The team still needs good examples, meaningful evaluations, and controls around production actions. But it can spend less effort managing model variants and more effort defining and testing the decisions that matter - a potential operational benefit to validate alongside accuracy.
ICL with Jev is not just an idea made attractive by cheap tokens. It produced measurable improvements. For the right applications, the next step in customizing AI may be a better casebook, not another training run.
Building a document workflow that needs dependable decisions? Talk to Eventum about evaluating Jev, designing the casebook, and testing the path from evidence to action.
How we ran the experiments
Model and data. Experiments primarily used pinned jev-1.14.0, with ordinary or extended context as indicated. The four public tasks used their complete official test sets. Forty development records overlapping official-test source groups were removed. Related contract judgments stayed grouped. BANKING77 and Emotion selector libraries contained 5,996 and 10,792 labeled records; the large banking casebook used a separate fixed pool of 2,446. [8] [9] [10] [11]
Selection and evaluation. The original request search used 48 search cases and 200 separate confirmation cases. Acceptance thresholds used 200 calibration cases per task. Fixed full-casebook prompts used no prompt-tuning labels; selector development used 248 distinct labels across its stages. The selector and full-casebook results therefore describe different configurations, not a controlled ranking of those two architectures.
Statistical scope. This was an exploratory, non-preregistered study. Some follow-ups, including the selector-control comparisons and the rejection-definition diagnostic, were retrospective. Accuracy differences use paired resampling of related source records. The original eight comparisons and the four selector-control comparisons use their stated multiple-comparison adjustments; the matched-casebook 95% interval is unadjusted. These intervals describe the evaluated populations and saved responses, not variability across repeated model calls.
Costs and interpretation. Recorded costs use reported input-token usage at $0.042 per million tokens. They exclude development, labeling, local computation, and human review. Unknown-usage reservations are separate from known usage. The +327 result is a net difference in correct classifications; the matched large-casebook result is +82. Public benchmarks and constructed policies support the findings reported here, while production validation requires customer-specific evidence.
Relationship disclosure
Eventum is an official technology partner of TypeSafe. Erik Gafni, TypeSafe’s CTO, is also an advisor to Eventum. These experiments and their interpretation are Eventum’s work; the relationship does not imply TypeSafe endorsement of the comparisons. [15]
References
- Brown et al. (2020). Language Models are Few-Shot Learners.
- Agarwal et al. (2024). Many-Shot In-Context Learning.
- Bertsch et al. (2025). In-Context Learning with Long-Context Models: An In-Depth Exploration.
- Rubin et al. (2022). Learning To Retrieve Prompts for In-Context Learning.
- TypeSafe (October 14, 2026). Jev: For the builders AND dreamers.
- TypeSafe. Models. Pricing and context settings as recorded for the October 16, 2026 study.
- Anthropic. Prompt caching.
- Casanueva et al. (2020). Efficient Intent Detection with Dual Sentence Encoders. BANKING77.
- Saravia et al. (2018). CARER: Contextualized Affect Representations for Emotion Recognition. The experiments used the DAIR.AI Emotion split configuration.
- Larson et al. (2019). An Evaluation Dataset for Intent Classification and Out-of-Scope Prediction. CLINC150 with out-of-scope requests.
- Koreeda and Manning (2021). ContractNLI: A Dataset for Document-level Natural Language Inference for Contracts.
- TypeSafe. Choice.
- AnthusAI. Few-Shot-Jev. Author-reported experiments using a different model version and evaluation setup.
- Jiang, Li, and Li (2026). Jev-Mem: System-One-Controlled Agentic Memory for Efficient AI Agents.
- Eventum AI. About Eventum. Public advisory relationship.


