{ "cells": [ { "cell_type": "markdown", "id": "545b05ef21c691cb", "metadata": {}, "source": [ "# Self-Refine: Enhancing LLM Outputs Through Iterative Self-Improvement\n", "\n", "This recipe demonstrates how to implement the Self-Refine technique using Large Language Models (LLMs) with Mirascope. Self-Refine is a prompt engineering method that enhances an LLM's output by iteratively generating feedback and improving its responses.\n", "\n", "
\n", "\n", "Background
\n", "\n", "Self-refine is a prompt engineering technique where a model gives feedback about its answer and uses the feedback to generate a new answer. This self refinement can take place multiple times to generate the final answer. Self-refine is helpful for reasoning, coding, and generation tasks.\n", "
\n", "Additional Real-World Applications
\n", "