AI Developer Notes – LLM Prompting Techniques You Must Know

You as a AI developer using LLMs, following are the LLM techniques you should be familiar with.

  1. Chain of Thought Prompting Technique
  2. Few Shot Prompting Techique
  3. Self-Consistency

Chain of Thought Prompting Technique”

You are asking the LLM to think through your problem step-by-step, and during each step you provide next step input as previous step’s response. 

This technique enables LLM to improve the final response as it seems its answer in each step.

Few Shot Prompting Technique

In this approach, you provide desired output structure along with the prompt. 

Self-Consistency

In this approach you give same question to various versions of the model and take the best answer across the model versions response.