When dealing with an AI model, we all want it to do what we want it to do. That might be tricky sometimes, and thatβs why prompting and prompt engineering is on the rise.
Prompt engineering is the process of crafting and refining input prompts to guide AI models to produce useful outputs like text, images, videos or code. The way a prompt is worded can affect the quality and relevance of the response. It involves techniques like adjusting wording, providing context or organizing inputs to improve results.
To put it simply: the better writer and communicator you are, the easier it is to play with words to βtameβ a model.
But here is a trick: different AI models may require different approaches - for example, we noticed that ChatGPT performs better with short prompts, while Midjourney needs more detailed instructions.
Here is a list of free guides and courses to master prompt engineering for popular models and comprehensive guides, that can be used everywhere. And if you have your own tips - share it with us!
Prompt engineering specified for the models:
ChatGPT
Prompt engineering guide from OpenAI platform provides strategies and tips for achieving better results from LLMs like GPT-4o. It includes prompt examples as well.
βPrompt Engineering for ChatGPTβ Coursera free course by Vanderbilt University teaches beginners to write effective prompts for LLMs. By the end, students will know essential prompt patterns and have strong skills to use AI for writing, summarization, planning, simulation, and programming.
Claude
Anthropic's Prompt Engineering Interactive Tutorial is one of the best guide that will help to learn how to prompt Claude models. It has 9 chapters with exercises and an appendix of advanced methods.
Anthropic Prompt Library is another great place where you can find optimized prompts for business and personal tasks.
Gemini
With βLarge Multimodal Model Prompting with Geminiβ course by DeepLearning.AI and Google Cloud you will learn how to create effective text-image-video prompts and fine-tune settings like temperature, top_p and top_k to control model creativity. You will also gain hands-on experience with multimodal prompt engineering, including best practices for role assignment, task breakdown and formatting.
Llama
βPrompt Engineering with Llama 2&3β course by DeepLearning.AI and Meta explains best practices for prompting these models. You will also learn advanced prompt techniques, like few-shot and chain-of-thought prompting and work with Code Llama.
Midjourney
βIntroduction to Midjourneyβ course by Edureka explains how Midjourney works and teaches how to use special prompt engineering techniques and ChatGPT to compose prompts for designing creative images.
Donβt forget also about Midjourneyβs own guide on writing prompts.
Comprehensive guides and courses:
Prompt Engineering Guide explains in detail the basics of prompting and all existing prompting techniques, such as zero-shot, few-shot, meta, graph, active-prompting, tree of knowledge and many others.
What's in a Prompt? guide by Learn Prompting provides information about many types of prompt techniques with image prompting as well. It also explains what is applied prompting, prompt hacking and prompt tuning. This guide is perfect for intermediate level.
Learn Prompting also has courses on prompt engineering and some of them are free. βLearn more
βAdvanced Prompt Engineering for Everyoneβ Coursera free course by Vanderbilt University for intermediate level: It explains in-context learning to guide AI models towards more accurate and relevant outputs, gives simple methods for constructing effective prompts with patterns and examples. It also teaches how to use RAG.
Coursera also provides many interesting courses on prompt engineering for different areas. βLearn more
