Notes from the course ChatGPT Prompt Engineering for Developers.
- Triple quotes: """
- Triple backticks: ```
- Triple dashes: ---
- Angle brackets: <>
- XML tags:
<tag> </tag>
HTML, JSON
Check assumptions required to do the task.
Given successful eaxmples of completing tasks Then ask model to perform the task.
Step 1: ... Step 2: ... ... Step N: ...
Simply asking if the answer is correct may lead to the incorrect answer. The model skims the answer.
E.g.: Determine if the student's solution is correct or not.
Instead, prompt: "Your task is to determine if the solution is correct or not. First, do the solution yourself. Does the student's solution match the actual solution? Student grade: "
Hallucination Makes statements that sound plausible but are not true Gives fictitious answers.
Use previously discussed tactics to reduce hallucinations.