This chapter presents advanced techniques for creating effective prompts. It first describes the so-called zero-shot, one-shot, and few-shot prompts, which guide the LLM toward solving the actual problem by providing varying numbers of examples. The cognitive verifier pattern is then explained, in which the LLM independently queries essential information required to solve the task. This is followed by chain-of-thought prompts, where the solution is developed step by step together with the LLM, and the multi-role analysis, in which the LLM assumes different roles and thus approaches the problem from various perspectives.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Advanced Techniques for Prompts

  • Daniel Koch,
  • Andreas Kohne,
  • Nils Brechbühler

摘要

This chapter presents advanced techniques for creating effective prompts. It first describes the so-called zero-shot, one-shot, and few-shot prompts, which guide the LLM toward solving the actual problem by providing varying numbers of examples. The cognitive verifier pattern is then explained, in which the LLM independently queries essential information required to solve the task. This is followed by chain-of-thought prompts, where the solution is developed step by step together with the LLM, and the multi-role analysis, in which the LLM assumes different roles and thus approaches the problem from various perspectives.