Short Answer

Constructing a Few-Shot Prompt for Multi-Step Reasoning

A researcher wants to use a large language model to perform a specific three-step analysis on sentences: 1) identify the longest word, 2) count the number of letters in that word, and 3) determine if that count is a prime number. When given only the instructions, the model's performance is inconsistent. Your task is to construct a complete and effective prompt that uses demonstrations to guide the model. Your prompt should include at least one full example of the task being performed correctly before presenting a new sentence for the model to analyze.

0

1

Updated 2025-09-28

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Application in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science