wiki / concepts / llm-app-improvement-ladder
LLM App Improvement Ladder
Machine ingest — raw context
loading…
~… tokensappend .md to any wiki URL for this view
LLM App Improvement Ladder
When an LLM app underperforms, don’t jump to fine-tuning. Pocock’s ordered ladder — try the simple thing first — moves from cheap prompt-level fixes to expensive architectural ones:^[raw/aihero/how-to-improve-your-llm-powered-app.md]
The Rungs
- First prompt — the baseline; most failures are under-specified instructions.
- Role-based prompting — give the model a persona/role.
- XML tags — structure the input so sections are unambiguous.
- Structured outputs — schema-constrain the response (structured outputs).
- Reasoning — elicit step-by-step thinking (cf. think tool).
- Multishot prompting — examples in-prompt.
- Temperature — tune randomness to the task.
- Tool calling — let the model act (tool calling loop).
- LLM call chaining — decompose into a pipeline (workflow pattern, agents vs workflows).
- RAG — retrieve documents into context.
- Chunking — tune retrieval granularity.
- Agentic loops — iterate tools against environment feedback.
- Parallelizing LLM calls — fan out independent work.
- Evaluator-optimizer — generate/evaluate loop (generator evaluator loop).
- LLM routers — classify inputs to specialized handlers.
- Fine-tuning — the last rung, not the first.
Why the Order Matters
Each rung’s cost compounds: prompt fixes are free, structural patterns cost engineering time, fine-tuning costs data plus pipeline maintenance. The ladder is also the diagnostic sequence — an app that fails at rung 3 won’t be saved by rung 16. Measured by eval taxonomy at every step, or you’re climbing blind.
Related
eval taxonomy, structured outputs, tool calling loop, agents vs workflows, generator evaluator loop, smart zone.
Evidence — verified primary sources
| raw/aihero/how-to-improve-your-llm-powered-app.md | internal workspace doc |