Short Answer

Crafting an Effective Prompt with Demonstrations

A user is trying to get a language model to create a username from a full name. The desired format is the first initial of the first name followed by the full last name, all in lowercase. The user's initial prompt is: Create a username for the name: Ada Lovelace. The model incorrectly responds with AdaL. Rewrite the prompt to include one clear demonstration that will guide the model to produce the correct output, alovelace.

0

1

Updated 2025-10-06

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

Creation in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science