From the course: Integrating Generative AI into JavaScript Web Projects
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Challenge: Create an AI-agent and jokes generator - JavaScript Tutorial
From the course: Integrating Generative AI into JavaScript Web Projects
Challenge: Create an AI-agent and jokes generator
(melodic music) - [Instructor] For the next challenge, the goal is to learn to configure the chat completion. So we learn to define prompts and a system message to give the chatbot instructions as to how to behave. And so we teach the chatbot to be skilled at telling jokes. So we're going to create a jokes generator. And for this purpose we're going to use the art of prompt engineering. So prompt engineering is the art of writing effective prompts by giving specific instructions to get the AI to generate the desired outputs. So the prompt is the text input in natural language that you send to the language model. So AI completions will vary based on the quality of the prompts that you provide. So for the next exercise, you have two ways. You have two options to complete the challenge. You can access here the remote repository, so you can access the different branches and then access the exercise files to complete the exercises and the challenges. So you can, if you'd like, create a new…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.