An optimal prompt is one selected for strong performance on a particular language-model call. Finding one by trial and error is difficult: the search space is large, and small test sets or limited exploration can make results unreliable. section 1.2.3
A practical route is to build and evaluate a baseline application, then use DSPy to discover prompts for its language-model calls. Once the application performs satisfactorily, it can move into production. section 1.6
Figure 1.7 DSPy supports automatically optimizing the prompts used by an application.
Shows DSPy automatically optimizing the prompts used by an application. section 1.6
