AI Engineering

Model choice & adaptation

A decision walk-through for prompting, RAG, fine-tuning, LoRA, distillation and routing, plus a cascade calculator for cost vs quality.

Real vs simulated: The cascade maths is exact for the accuracies you enter; the accuracies themselves are yours to set.

Prompt, RAG, fine-tune, distil, route or self-host?

  1. Have you tried a strong model with a good prompt, a few examples and an eval set?

  2. Does the task depend on facts that change or that the model can’t know (your docs, your data)?

  3. Do different users see different data?

  4. Is the gap about behaviour — a format, style, or narrow skill the prompt can’t make reliable?

  5. Do you have (or can you generate and verify) hundreds+ high-quality examples?

  6. Is cost or latency at scale the main pain, with a big model already doing the task well?

  7. Is traffic a mix of easy and hard requests?

  8. Must data stay in your VPC, or do you need full control of the model and its updates?

Where that leads

Answer the questions on the left.

    These aren’t exclusive: a common production shape is a distilled small model, fine-tuned for the output format, sitting on top of permission-aware RAG, with a router that escalates hard cases to a frontier model.

    Cascade calculator

    PolicyAccuracyCost / requestPer 1M requests
    Always the large model93.0%$0.0090$9,000
    Always the small model83.0%$0.00060$600
    Router → small or large92.5%$0.0037$3,724

    The router saves 59% of cost for 0.5 points of accuracy. The lever that matters most is router accuracy on hard requests: every hard request it misroutes is answered at the small model’s hard-case accuracy.

    Exact expected values for the numbers you enter — measure each one on a labelled sample of your own traffic.