recommendationcourse
AI Evals For Engineers & PMs

It is a deep dive into bringing evals for LLM powered products. It gave a framework, process and some tools to apply evals to your apps.
Key Learnings
Three Gulfs Model
- Gulf of Comprehension
- Understanding your data nad how the LLM behaves with it.
- Gulf of Specification
- Giving the LLM clear and precise instruction
- Why its hard. LLMs cannot gues your true intention. They need explicit and detailed instructions for what to do and what not to do.
- Gulf of Generalization
- Ensure the bot performs well on new inuts it hasn't seen before.
- A perfect prompt can’t always fix the LLMs core inability to apply its knowledge to every possible new situation. LLMs may not generalize in the same way that humans do.
Analyze-Improve-Measure
- Analyze
- Collect representative examples and categorize failure modes
- Pitfalls
- Outsourcing annotations
- Not looking at enough examples
- Measure
- Translate qualitative insights into quantitative metrics
- Pitfalls
- Unaligned LLM judges
- Overfitting by testing LLM judges on examples in their prompts
- Improve
- Refine prompts, models and pipeline architecture
- Pitfalls
- Premature improvement
- Jumping to most complex solution first (eg fine-tuning)