Skip to main content

Overview

How can we generate examples for our prompt? Self-Generated In-Context Learning (SG-ICL) is a technique which uses an LLM to generate examples to be used during the task. This allows for in-context learning, where examples of the task are provided in the prompt. We can implement SG-ICL using Instructor as seen below.

Example

References

  1. Self-Generated In-Context Learning: Leveraging Auto-regressive Language Models as a Demonstration Generator
  2. The Prompt Report: A Systematic Survey of Prompting Techniques