Learn Before
Short Answer

Constructing a Few-Shot Prompt for a Novel Task

You need a large language model to perform a novel task: extracting the primary programming language mentioned in a block of text and formatting it as 'Language: [name]'. Construct a complete, self-contained prompt that uses the few-shot learning technique to accomplish this. Your prompt must include at least two distinct examples (demonstrations) of the task before presenting the final input that you want the model to process.

0

1

Updated 2025-10-02

Contributors are:

Who are from:

Tags

Ch.1 Pre-training - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Ch.2 Generative Models - Foundations of Large Language Models

Ch.3 Prompting - Foundations of Large Language Models

Creation in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science