Short Answer

Constructing a RAG Prompt

You are building a question-answering system. Given the components below, construct a single, complete prompt that follows the standard structure for this task. Your prompt must integrate all three necessary elements: a guiding instruction, the user's query, and the provided information.

  • User's Query: "What is the primary function of a transformer's self-attention mechanism?"
  • Retrieved Information: "The self-attention mechanism allows a model to weigh the importance of different words in an input sequence when processing that sequence. It helps the model to understand context and relationships between words, even if they are far apart."

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