Prompt Engineering Tutorial – Master ChatGPT and LLM Responses

1,474,324
0
Published 2023-09-05
Learn prompt engineering techniques to get better results from ChatGPT and other LLMs.

✏️ Course developed by ‪@aniakubow‬

⭐️ Contents ⭐️
⌨️ (00:00) Introduction
⌨️ (01:31) What is Prompt Engineering?
⌨️ (02:17) Introduction to AI
⌨️ (03:52) Why is Machine learning useful?
⌨️ (06:36) Linguistics
⌨️ (08:04) Language Models
⌨️ (14:35) Prompt Engineering Mindset
⌨️ (15:38) Using GPT-4
⌨️ (20:41) Best practices
⌨️ (31:20) Zero shot and few shot prompts
⌨️ (35:06) AI hallucinations
⌨️ (36:43) Vectors/text embeddings
⌨️ (40:28) Recap

🎉 Thanks to our Champion and Sponsor supporters:
👾 davthecoder
👾 jedi-or-sith
👾 南宮千影
👾 Agustín Kussrow
👾 Nattira Maneerat
👾 Heather Wcislo
👾 Serhiy Kalinets
👾 Justin Hual
👾 Otis Morgan
👾 Oscar Rahnama


English
This video has been dubbed using an artificial voice via aloud.area120.google.com/ to increase accessibility. You can change the audio track language in the Settings menu.

Spanish
Este video ha sido doblado al español con voz artificial con aloud.area120.google.com/ para aumentar la accesibilidad. Puede cambiar el idioma de la pista de audio en el menú Configuración.

Portuguese
Este vídeo foi dublado para o português usando uma voz artificial via aloud.area120.google.com/ para melhorar sua acessibilidade. Você pode alterar o idioma do áudio no menu Configurações.

Hindi
इस वीडियो को ज़्यादा लोगों तक पहुंचाने के लिए, इसे aloud.area120.google.com/ के ज़रिए एक आर्टिफ़िशियल वॉइस का इस्तेमाल करके डब किया गया है. सेटिंग्स मेनू में जाकर ऑडियो ट्रैक की भाषा बदली जा सकती है.

(Hindi dubbed via Melt Labs - www.withmelt.com/)

--

Learn to code for free and get a developer job: www.freecodecamp.org/

Read hundreds of articles on programming: freecodecamp.org/news

All Comments (21)
  • @aniakubow
    Hope you all enjoy this tutorial! Big love to the freeCodeCamp community!!
  • @kolbyhunt4434
    Prompt engineer tip. If you have a task just ask gpt to provide a full list of required info to help it properly understand the task. The best prompt engineer is chat gpt
  • @OHJLM
    Thankyou Ania! I didn't understand how important it is to have a pre-formatted prompt plan, almost like a mini project proposal!
  • @aanchaallllllll
    0:33: 💡 Learn about prompt engineering and its importance in maximizing productivity with large language models. 4:57: ! Using AI to generate engaging prompts for English learners to practice spoken English. 8:55: 🗣 Language models analyze sentences, generate predictions, and create well-crafted responses, making them useful in various applications. 13:06: 📚 Language models like GPT have revolutionized the understanding and generation of human language. 17:39: 📚 This video provides a quick introduction to using OpenAI and its API to create and delete chats. 22:10: ⏰ The importance of clear instructions and prompts in saving time and resources. 26:20: 💡 Adopting a persona in prompt engineering can help ensure that the language model's output is relevant, useful, and consistent with the needs and preferences of the target audience. 32:05: 💡 Zero-shot prompting allows models to perform tasks without explicit training examples, while few-shot prompting involves providing a small amount of training data. 37:33: 🔑 Text embedding is a technique used to represent textual information in a format that can be easily processed by algorithms, particularly deep learning models. Recap by T
  • @FHL1314
    Here are some extra smart tips on prompt engineering that are practical: - Embrace the Socratic method: Instead of asking direct questions, break down your prompts into a series of leading questions that guide the model towards the desired output. - Leverage few-shot learning: Provide a few examples of the desired input-output pairs before the actual prompt. This can significantly improve the model's understanding and performance. - Employ recursive re-writing: Feed the model's output back into itself as a new prompt, allowing it to iteratively refine and improve its responses. - Utilize prompt chaining: Break down complex tasks into a sequence of smaller prompts, where the output of one prompt becomes the input for the next. - Explore prompt augmentation: Supplement your prompts with additional context, such as relevant background information, constraints, or examples of what not to do. - Experiment with prompt ensembling: Combine the outputs of multiple prompts or models to create a more robust and diverse final output. - Leverage prompt-based fine-tuning: Fine-tune language models on a small dataset of prompts and desired outputs, tailoring them for specific tasks or domains. - Incorporate prompt-based retrieval: Use prompts to query and retrieve relevant information from external sources, effectively augmenting the model's knowledge. - Explore prompt-based translation: Translate prompts into different languages or styles, potentially unlocking new perspectives or capabilities. - Leverage prompt-based reasoning: Guide the model to perform multi-step reasoning or problem-solving by breaking down complex tasks into a series of prompts.
  • @yasir3425
    Don't let word "Engineering" dissuade you. Just simply learn skill to write effective prompt.
  • @DavidT-tm5co
    I have liked, subscribed and turned on notification bell. Thank you for the Prompt Engineering, ChatGPT and LLM Responses Tutorial delivered free of charge.
  • @urban-pixel
    Ok the embedding part is mind blowing!!!! 🤯 🤯 thanks!! 🙏
  • @leftovertech
    It is called Prompt "Engineering" purely for social reasons. As a long-time computer engineer, I can say with some confidence that many things in the IT world are named for the purpose of making the humans feel better. LOL
  • @jiovannirosario
    As an engineer, I feel like the tech industry is watering down the significance of what it means to be an engineer. Engineering is not simply writing prompts for ChatGPT 🤦🏽‍♂️ Instead of Prompt Engineer, it should be called Prompt Writer. You wouldn’t call someone who can use Google Search a Google Engineer.
  • @peteagrawal
    Thank you Ania Kubow and Free Code Camp for this tutorial. This is probably the best introductory lesson I have come across. Even my wife, who is not technical at all, and my 9-year-old daughter, can understand now what prompt engineering is.
  • @davidalex684
    This is amazing, my favourite section of a computer
  • 🎯 Key Takeaways for quick navigation: 00:00 🧑‍🏫 This course focuses on mastering prompt engineering to optimize interactions with AI models like Chat GPT and LLMs. 00:58 🤖 Prompt engineering involves refining and optimizing prompts to improve human-AI interactions, requiring continuous monitoring and adaptation. 04:19 🎓 Effective prompts in language learning with AI can provide tailored, engaging, and interactive experiences for learners, enhancing their skills. 07:41 🧠 Understanding linguistics is key to crafting effective prompts, ensuring standardized grammar and language structure for accurate AI responses. 08:11 💬 Language models, like GPT, understand and generate human-like text, shaping conversations and assisting in various domains from virtual assistants to creative writing. 13:26 🚀 The evolution of language models, starting from Eliza to GPT-4, has revolutionized AI, presenting a vast potential for prompt engineering and its applications. 14:52 💡 Crafting effective prompts involves adopting a clear and detailed instruction style, considering the context, and avoiding biases to optimize AI responses. 24:55 📝 Being specific in instructions to ChatGPT, like requesting bullet point summaries with word limits, yields desired outputs. 26:53 🎭 Adopting a persona in prompts helps tailor AI responses to a specific character or style, enhancing relevance and usefulness. 31:36 🔄 Zero-shot prompting utilizes pre-trained models' understanding without explicit training, while few-shot prompting enhances models with specific training examples. 35:41 😅 AI hallucinations are unusual outputs from models misinterpreting data, showcasing how models understand and interpret information. 37:06 📊 Text embedding and vectors help represent textual information in a format easily processed by algorithms, capturing semantic meanings for efficient querying an
  • @4_real_bruh
    So basically knowing how to express yourself and your needs properly is now a profession?
  • @emc3000
    Thanks for helping illuminate this topic more clearly!
  • Ooh, that's a cool and useful lesson. Prompt Engineering is undeniably a knowledge worth of investing and learning.
  • @rongarza9488
    Great video, thanks. I kept thinking back to when I visited a border town in Mexico as a child on a Sunday. The town square had a band stand in the middle. Around the perimeter sat men with typewriters, ready to interpret letters workers wanted to send home. That was AI back then, one direction, out. This is AI now, one direction, in.
  • @LadywithMS
    Very informative, @AniaKubow ! Thank you!