📖 Prompt Engineering Guide

✨ Services LLM Settings Basics of Prompting Prompt Elements General Tips for Designing Prompts Examples of Prompts Zero-shot Prompting Few-shot Prompting Chain-of-Thought Prompting Meta Prompting Self-Consistency Generate Knowledge Prompting Prompt Chaining Tree of Thoughts Retrieval Augmented Generation Automatic Reasoning and Tool-use Automatic Prompt Engineer Active-Prompt Directional Stimulus Prompting Program-Aided Language Models

Active-Prompt

Active-Prompt

Chain-of-thought (CoT) methods rely on a fixed set of human-annotated exemplars. The problem with this is that the exemplars might not be the most effective examples for the different tasks. To address this, Diao et al., (2023) (opens in a new tab) recently proposed a new prompting approach called Active-Prompt to adapt LLMs to different task-specific example prompts (annotated with human-designed CoT reasoning).

Below is an illustration of the approach. The first step is to query the LLM with or without a few CoT examples. k possible answers are generated for a set of training questions. An uncertainty metric is calculated based on the k answers (disagreement used). The most uncertain questions are selected for annotation by humans. The new annotated exemplars are then used to infer each question.

ACTIVE

Image Source: Diao et al., (2023) (opens in a new tab)

Related Learning

Explore All Courses

Discover our full catalog of AI and prompt engineering courses. From beginners to advanced practitioners.Use code PROMPTING20 for 20% off!

Browse Academy