Example

Example of a Few-Shot Prompt for Chinese-to-English Translation

A few-shot learning prompt can utilize a simple pattern to guide a model in a translation task. For instance, to translate Chinese words into English, several demonstrations are provided to establish the input-output format, followed by a new user query for the model to process. An example of such a prompt is:

DEMO 现在 → now 来 → come 去 → go 男孩 → boy

USER 女孩 →

Image 0

0

1

Updated 2026-05-02

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