← Back to TypeScript
Give It What It Needs
A model with the wrong context invents confidently. A model with too much gets worse and costs more. You are given a question it cannot answer alone and a menu of things you could show it, each with a price — being right is the floor, being right cheaply is the exercise.
Give it what it needs: a query against a schema it has never seen
intermediatecontextA model cannot write this query without being shown something. Four things are on offer and only one is necessary. Handing over all four is allowed, costs sixteen times as much, and is what most people do.
Give it what it needs: a call against an API you have not read
intermediatecontextA model asked to cancel an order will guess the obvious endpoint, and the obvious endpoint deletes the order instead. One source on the menu prevents that. It is the cheapest one.