
AI Engineering: Building Applications with Foundation Models

However, translating is a much simpler task than planning and can be done by weaker models with a lower risk of hallucination.
Chip Huyen • AI Engineering: Building Applications with Foundation Models
who says weaker models hallucinate less?
only after this plan is validated
Chip Huyen • AI Engineering: Building Applications with Foundation Models
Without oversight, an agent can run those steps for hours, wasting time and money on API calls, before you realize that it’s not going anywhere.
Chip Huyen • AI Engineering: Building Applications with Foundation Models
If the model’s accuracy is 95% per step, over 10 steps, the accuracy will drop to 60%, and over 100 steps, the accuracy will be only 0.6%.
Chip Huyen • AI Engineering: Building Applications with Foundation Models
“Given the following conversation, rewrite the last user input to reflect what the user is actually asking”.
Chip Huyen • AI Engineering: Building Applications with Foundation Models
it’s important to be aware of how they work under the hood to avoid unnecessary costs and headaches.
Chip Huyen • AI Engineering: Building Applications with Foundation Models
CoT is to add “think step by step” or “explain your decision”
Chip Huyen • AI Engineering: Building Applications with Foundation Models
it’s common to use a weaker model for intent classification and a stronger model to generate user responses.
Chip Huyen • AI Engineering: Building Applications with Foundation Models
you don’t want preambles.