How to Write Expert Prompts for ChatGPT (GPT-4) and Other Language Models – Towards Data Science
Sign up
Sign in
Sign up
Sign in
Member-only story
Nabil Alouani
Follow
Towards Data Science
—
10
Share
Prompt Engineering is a fancy way to say, “Write better and better instructions for an AI model until it does exactly what you want.”
Writing prompts is a bit like riding a bike. You don’t need a Ph.D. in mechanical physics to learn how to keep your balance. A bit of theory can help but the most important part is trial and error.
Consider this guide as the “bit of theory” that will help you prepare for riding the AI bike. You’ll find a list of techniques illustrated with explanations, examples, and templates you can test on your favorite models.
The guide focuses on ChatGPT (GPT-4), but every single technique shared below applies to other Large Language Models (LLMs) like Claude and LLaMA.
—
—
10
Towards Data Science
Engineering (Software & Prompts for LLMs) || 100% human-generated content || Weekly Emails: https://nabilalouani.substack.com
Help
Status
About
Careers
Blog
Privacy
Terms
Text to speech
Teams