QuestionQ24

Solution Design

You are creating a few-shot prompt for a chatbot that generates answers from customer queries. The task requires adding structured examples to the prompt. Which initialization step is essential to ensure the agent properly understands the context?

  • A Only focusing on the output without aligning examples to input queries.
  • B Ensuring the prompt begins with a clear explanation of the task and includes structured examples.
  • C Adding a detailed system message about the chatbot’s role, without needing to include specific inputs.
  • D Starting with an open-ended prompt and allowing the Agent to infer the pattern from real-time inputs.
Explanation

Few-shot prompts should clearly state the task and provide structured, representative input-output examples. The instruction establishes the intended behavior, and the examples demonstrate how customer queries should be mapped to answers.

Community Discussion

No comments yet. Be the first to start the discussion!