Base prompting

Prompting is the most basic and widely used method to steer LLM outputs. It involves crafting specific instructions or questions that guide the model's response. Effective prompting can significantly improve the relevance and accuracy of the model's output. Some key aspects of prompting include:

Clear and specific instructions

Clear and specific instructions are crucial for guiding the LLM's output. Instead of vague or ambiguous instructions, provide clear and direct guidance on what you want the model to do. For example:

Chain of Thought

Chain of Thought is a prompting technique that involves breaking down complex tasks into smaller, more manageable steps. This method helps the LLM to think through the problem step-by-step, leading to a more accurate and coherent response. Here's how it works:

  1. Identify the task: Clearly define the task you want the LLM to perform.
  2. Break down the task: Break the task into smaller, sequential steps.
  3. Provide examples: Use examples to demonstrate the desired output for each step.
  4. Guide the model: Provide guidance on how to perform each step, including any necessary calculations or logical reasoning.

Tree of Thought

Tree of Thought is a prompting technique that involves breaking down complex tasks into smaller, more manageable steps. This method helps the LLM to think through the problem step-by-step, leading to a more accurate and coherent response. Here's how it works:

  1. Identify the task: Clearly define the task you want the LLM to perform.
  2. Break down the task: Break the task into smaller, sequential steps.
  3. Provide examples: Use examples to demonstrate the desired output for each step.
  4. Guide the model: Provide guidance on how to perform each step, including any necessary calculations or logical reasoning.

Self-Consistency