4.6 Coding: Self-Feedback
In this section, we explore a technique that allows generative AI systems to assess and refine their own outputs iteratively. Self-feedback empowers LLMs to evaluate responses against desired outcomes, effectively enhancing the quality of their own outputs without any human intervention.
This process, driven by structured inputs and outputs that request evaluation or improvement on the generated content, can significantly optimize the responses in applications. By implementing self-feedback loops, we can guide models toward producing more accurate, contextually relevant, and user-aligned outputs, thus making the approach highly effective in real-world tasks. Figure 4.7 shows the process flow for implementing a self-feedback ...
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