Chapter 7. Experimentation
“It doesn’t matter how beautiful your theory is… If it doesn’t agree with experiment, it’s wrong.”
Richard Feynman
The major difference between developing traditional software and AI applications is that the latter rarely follows a straight line to production. Progress frequently comes very quickly at first, then stagnates or even regresses. This is due to the stochastic and unpredictable nature of AI models, which makes it difficult to predict which changes will lead to improvements.
Does changing the prompt lead to better performance? Does switching to a different model improve the quality of responses? Which retrieval mechanism best supports factual accuracy? While there are proven strategies to follow, ultimately these questions cannot be answered with certainty a priori. Instead, teams must test them and measure the results. Consequently, it is effectively impossible to plot the shortest path to production.
In contrast, traditional software development exhibits ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access