Introduction to Prompt Engineering
- Understand the basic concepts of prompt engineering.
- Write effective prompts for large language models(variety of techniques)
Is the process of crafting instructions that guide the output of a large language model (LLM).
Prompts- can be simple as a few words or as complex as a paragraph.
- Clear
- Concise
- Specific
Examples of prompts:
Simple prompts: Write a poem about a cat
Complex prompts; Generate a 3D model of a cat based on the following description: A tabby cat with
green eyes and a white belly
Technical prompt: Write a prompts that will generate a poem about a cat using the Bard API.
HOW THESE PROMPTS WORKS
- The simple prompt is clear and concise.
- The complex prompt is more detailed.
- The technical prompt is specific
Tips for writing effective prompts:
- Use clear and concise language
- Be specific about what you want the LLM to do
- Use keywords and phrases that are relevant to ask at hand
- Avoid using negative language.
- Experiment with different techniques to improve the effectiveness.