How to Write Expert Prompts for ChatGPT (GPT-4) and Other Language Models

A beginner-friendly guide to prompt engineering with LLMs

Nabil Alouani
Towards Data Science
63 min readNov 1, 2023

--

Image by author via Midjourney.

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…

--

--