You learned about writing good prompts, how and why hallucinations happen, and how to prevent hallucinations with ChatGPT in this lesson.
Remember, the keys to writing good prompts are:
Be specific
Provide context
Use examples
Limit scope
Iterate and refine
Anticipate errors
If you find yourself asking ChatGPT for help with the same or similar tasks many times, iterate on writing the prompt until you get responses in the form you’d like. Then, copy and paste the bulk of the prompt and edit only the different parts of the task to effectively create and reuse a prompt template.
Keep your conversations and the context short. Anytime you change topics or ask about something else, start a new conversation with ChatGPT. Along with writing good prompts and using the latest GPT models, this helps to minimize hallucinations with ChatGPT.
See forum comments
This content was released on Sep 19 2024. The official support period is 6-months
from this date.
A review of the components that make for good prompts.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.