07 Prompts
Introduction¶
- Prompts are the instructions sent to the LLM to perform operations in a certain manner.
- There are two types of prompts.
- System Prompt: Tells the models about what tasks they should perform and what tone should be used.
- User Prompt: User input for the model to start with and follow on.
Types of Prompting¶
- Zero shot prompting - Asking a question without an example.
- One shot prompting - Asking a question with a single example.
- Multi shot prompting - Asking a question with multiple examples.
Examples¶
Once the messages object is constructed it needs to be passed on to the requests.