Prompt Engineering

A knowledge database on prompt engineering will be created here. More information soon.

Name and InfosDescriptionLink
How To Get Started With ChatGPT for Beginners (List / Article, Beginner-Level)Very simple and easy beginners guide to using ChatGPT, with step by step explanations, lists of example prompts, writing styles, and more. No need to buy the ebook. Reading time: up to 30 minutes.https://www.learnprompt.org/how-to-use-chatgpt/
Prompt Engineering Tutorial - Master ChatGPT and LLM Responses (Video, Beginner-Level)Tutorial on prompting engineering for ChatGPT and LLMs. On learning, how to write and develop a longer and more complex prompt. Introduction to prompt engineering and AI. Topics: linguistics, LLMS, prompt engineering mindset, using GPT-4, best practices, zero-shot and few-shot prompts, AI hallucinations, vectors/text embeddings. Length: 41:35 minutes.https://www.youtube.com/watch?v=_ZvnD73m40o
The 10 Best Free Prompt Engineering Courses & Resources for ChatGPT, Midjourney & Co. (Article, Beginner-level)Lists ten free and good prompt engineering courses + bonus resource. Last updated in January 2024. Reading time: about 20 minutes.https://medium.com/@maximilian.vogel/the-10-best-free-prompt-engineering-courses-resources-for-chatgpt-midjourney-co-dd1865d4ad13
Best practices for prompt engineering with the OpenAI API (Article, Beginner-level)Rules of thumb and prompt engineering examples, best practices and basics: separating instructions from content, Learning to use specific, descriptive language, defining the desired output format, zero-shot vs. one-shot, few-shot prompting, say what to DO instead of what NOT to do, and using leading words. Easy reading. Reading time: 10-15 minutes.https://help.openai.com/en/articles/6654000-best-practices-for-prompt-engineering-with-the-openai-api
Spezialisierung Prompt Engineering (Course, Beginner-level)Starts from square one and builds methodically up. University style lectures, focus demanding, deep and thorough coverage from fundamentals over esoterics to advanced topics with a number of interesting approaches. Topics: Prompt Engineering, ChatGPT, generative KI, ChatGPT, Erweiterte Datenanalyse. Time: 1 month at 10 hours/week.https://www.coursera.org/specializations/prompt-engineering?utm_medium=sem&utm_source=gg&utm_campaign=b2c_emea_prompt-engineering_vanderbilt_ftcof_specialization_arte_march_24_dr_geo-multi-set1_pmax_gads_lg-all&campaignid=21076974228&adgroupid=&device=c&keyword=&matchtype=&network=x&devicemodel=&adposition=&creativeid=&hide_mobile_promo&gad_source=2&gclid=CjwKCAjwte-vBhBFEiwAQSv_xbjYdqWcj5BxuEow2iA7lC9s1VqchCEWrlg7V6E6KFTpQV1AqVsV-RoCvr0QAvD_BwE
Tips to enhance your prompt-engineering abilities (Article, Beginner-level)Six tipps to enhance prompt-engineering capabilities. Topics include: knowing the model's strengths and weaknesses, being as specific as possible, utilizing conceptual prompts, providing examples, and experimenting with personas and chain-of-thought prompting. From August 15, 2023. Reading time: 15 minutes.https://cloud.google.com/blog/products/application-development/five-best-practices-for-prompt-engineering?hl=en
10 prompt engineering tips and best practices (Article, Beginner-level)Article about prompt engineering and tips to write better prompts to generate text and advice on how to engineer prompts to generate images. Notably, it lists what common mistakes to avoid. Engineering tips include: understanding the desired outcome, form matters, making clear and specific requests, considering length, choosing words carefully, posing of open-ended questions or requests, including context, setting output length goals or limits, avoiding conflicting terms, using punctuation to clarify complex prompts. Common mistakes include: failure to test and revise, looking for short answers, sticking to the default temperature, using identical sequences in each prompt, using identical approach for each AI system, forgetting that AI can be wrong. One Youtube Link. From September 22, 2023. Reading time: 20 minutes. https://www.techtarget.com/searchenterpriseai/tip/Prompt-engineering-tips-and-best-practices
Master the Perfect ChatGPT Prompt Formula (in just 8 minutes)! (Video, Beginner/Advanced-level)Tutorial (short) on prompt writing. Focus on prompt parts and order of their importance: task, context, exemplar, persona, format, tone. Use of action verbs at the beginning of a prompt, simple task and multi-task requests. Tipps for context writing: user background, success, environment. Exemplar meaning one-shot or few-shot prompting. Persona meaning role. Length: 8:29 minutes. https://www.youtube.com/watch?v=jC4v5AS4RIM
You’re using ChatGPT wrong (Video, Beginner/Advanced-level)Introduction to using custom instructions to improve ChatGpt responses. Length: 9:30 minutes.https://www.youtube.com/watch?v=Y35EHDRNUeo
ChatGPT Prompt Engineering Free Course (ChatGPT 101) (Video, Beginner/Advanced-level)Tutorial beginning with the basics on prompt writing, prompt engineering, and advanced prompt engineering techniques. Introduction to n-shot prompting, chain-of-thought prompting ("Let's think step by step", "Show me step by step"), feedback technique, and self-ask prompt engineering, i.e., adding to the prompt: "If there's any ambiguity, fell free to ask me questions before delivering the response" or: "Ask me questions using the 5-why technique before delivering the response". Additional: custom instructions for ChatGPT. Length: 1:21 hours.https://www.youtube.com/watch?v=pYiA2dTxWoY
I Scanned 1000+ Prompts so You Don’t Have to: 10 Need-to-Know Techniques (Article, Beginner/Advanced-level)Interesting to read article, covers more advanced topics of prompt design with screenshots and examples. More complex topics and examples. Reading time: 30 minutes.https://medium.com/@maximilian.vogel/i-scanned-1000-prompts-so-you-dont-have-to-10-need-to-know-techniques-a77bcd074d97
Your Guide to Generative AI (Course, Beginner/Advanced-level)Different courses from beginner (free) to advanced level, many examples and topics covered with a lot of attention to detail. Only the first part of the course is for free. Own API is needed. Time: 1-2 days.https://learnprompting.org/
Prompt Engineering Guide (Course/Library, Beginner/Advanced-level)Big and structured library to look up prompt engineering terms from basic to very advanced and complex, scientific papers, and information on models in use from ChatGPT to Sora. Chapters for different topics including: LLM settings, basics of prompting, prompt elements, general tips for designing prompts, and advanced techniques. Offers additionally paid courses with a discount. Reading time: around 45 minutes.https://www.promptingguide.ai/introduction
DALL-E 2 Prompt Book (Digital Book/Guide, Beginner/Advanced-level)A digital book, gives introduction to AI art prompting for DALL-E 2 and others. Contains many example prompts and images, and guidance on how to prompt or edit pictures within or outside the app, cropping, zooming, positioning, and context jumping. Chapters: Introduction, Vibes, Photography, Illustration, Art history, 3D artwork, DALL-E techniques, Showcase, Appendix. Last updated: July 14, 2022. Pages: 82. Reading time: up to 1 hour.https://pitch.com/v/DALL-E-prompt-book-v1-tmd33y/6fb6f14b-10ef-48f3-a597-d4af7aa1c9c6
Prompt Engineering: Six Stategies for Getting Better Results (Guide, Beginner/Advanced-level)The guide on prompt engineering strategies is one guide of many within the extensive documentation library of platform.openai.com. There is much more information on all other topics relating to the use and the applications of LLMs. Strategies to improce prompting include: writing clear instructions, providing reference texts, splitting complex tasks into simpler subtasks, giving the model time to "thinkt", using external tools, testing changes in prompts systematically. Advanced difficulty. Reading time: < 1 hour.https://platform.openai.com/docs/guides/prompt-engineering/six-strategies-for-getting-better-results
Prompt Engineering For ChatGPT: A Quick Guide To Techniques, Tips, And Best Practices (Paper, Beginner/Advanced-level)A paper written with the help of ChatGPT by Sabit Ekin from Texas University. Gives an introduction and quick overiew of all relevant keywords, techniques, and aspects regarding prompt engineering including an outlook to more advanced topics. Topics include: introduction to ChatGPT and fundamentals of prompt engineering, techniques of effective prompt engineering, best practices for prompt engineering, advanced prompt engineering strategies, case studies of real-world applications of prompt engineering. From October 31, 2023. Time: 45 minutes.https://d197for5662m48.cloudfront.net/documents/publicationstatus/174684/preprint_pdf/f94a60a2566eade6c63a19601bcf39b4.pdf
DeepLearning.AI Short Courses: ChatGPT Prompt Engineering for Developers (Course, Advanced-level)Nine comprehensive, video-based courses covering all aspects regarding prompt engineering tailored to software engineers and developers. Gives inspirations that can directly be translated into prompt engineering. Still free at the moment. Requirements are: account, Jupyter Notebook, and basic Python knowledge. Time: 90 minutes to watch, a few days to play around with the examples.https://learn.deeplearning.ai/courses/chatgpt-prompt-eng/lesson/1/introduction
Advanced MidJourney Prompt Engineering (Article + Video, Advanced-level)Quick introduction and overview to prompting and prompt engineering for MidJourney. Midjourney is an AI art and image generator. Article contains: overview of Midjourney commands, example prompts and pictures, tips and tricks, and links to Youtube videos. Requirements: Discord account and invitation link. Reading time: ~30 minutes. Video length: 9:55 minutes.https://jamesbachini.com/advanced-midjourney-prompt-engineering/
Unleashing the potential of prompt engineering in Large Language Models: a comprehensive review (Research paper, Advanced-level)Introduction to prompt engineering and several Large Language Models (LLMs) in use, overview of basic and advanced prompting techniques, the future of prompting methodologies, assessment of prompting methods, benefits of prompt engineering in different fields. Basic techniques: giving instructions, being clear and precise, role-prompting, use of (triple) quotes, trying several times, one-shot and few-shot prompting, temperature and top-p LLM settings. Advanced techniques: chain-of-thought, zero-shot chain-of-thougth, golden chain-of-thought, self-consistency method, generated knowledge approach, least-to-most prompting, tree of thoughts, graph of thoughts, retrieval augmentation, using plugins to improve prompts. From October 2023. Reading time: > 1 hour.https://arxiv.org/pdf/2310.14735.pdf
Prompt examples (Repository, Advanced-level)Examples showing the use of different system messages for prompting via API requests. https://platform.openai.com/examples
Advanced Prompt Engineering (Article, Advanced/Expert-level)Advanced materials and interesting approaches regarding the "deep end of prompt engineering". The article tackles complex problems for cases when few-shot prompting is not enough and multi-step processes are needed to get an answer. Uses pictures, examples, and research paper references. An account is needed. Length: 2 hours reading. https://towardsdatascience.com/advanced-prompt-engineering-f07f9e55fe01
OpenAI Cookbook (Repository, Advanced/Expert-level)The openai cookbook is a community-driven resource. The extensive cookbook contains countless examples of prompts used in software engineering tasks. Further, there are repositories, Jupyter notebooks, explanations, and introductions. Most code examples are written in Python. The "related resources from around the web"-link leads to another page of prompting libraries, tools, guides, video courses, and papers on advanced prompting to improve reasoning. Requirements: OpenAI account and API. Time: indefinite. https://github.com/openai/openai-cookbook
Chain-of-Thought Prompting Elicits Reasoning in Large Language Models (Research paper, Advanced/Expert-level)Experimental investigation into the (improved) ability of chain-of-thought prompting to perform complex reasoning tasks, compared to standard prompting. Arithmetic reasoning, commonsense reasoning, symbolic reasoning. Math word problem benchmarks: GSM8K, SVAMP, ASDiv, AQuA, MAWPS. Models: GPT 3 175B, PaLM 540B, LaMBDA. From January 2023. Reading time: > 1 hour.https://arxiv.org/pdf/2201.11903.pdf
An Introduction to Large Language Models: Prompt Engineering and P-Tuning (Article, Advanced/Expert-level)Nvidia article from a technical blog, with pictures and examples. Short but complex introduction to LLMs, prompting techniques and prompt engineering. Target group are developers or people with background knowledge. Many complex topics are touched but without enough depth to grasp the significance or relevance for beginners. Topics include: why using large language models, value of LLMs over multiple 'ensembles', prompting LLMs, prompt engineering for better prompts, p-tuning to customize LLMs, and related resources for the interested. From April 26, 2023. Reading time: around 30 minutes. https://developer.nvidia.com/blog/an-introduction-to-large-language-models-prompt-engineering-and-p-tuning/
Prompt Engineering Tools (Repository, Advanced/Expert-level)A section within a large guide containing a list of non-IDE tools that can be useful for prompting. It is part of a larger prompt engineering guide that is also worth discovering. Reading time: 5 minutes.https://learnprompting.org/de/docs/tooling/tools