Conclusion

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

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
Download course materials from Github
Previous: Demo Next: Quiz: Reviewing ChatGPT Prompt Optimizations