From the course: Foundations of AI and Machine Learning for Java Developers
Unlock this course with a free trial
Join today to access over 24,500 courses taught by industry experts.
Prompt tips - Java Tutorial
From the course: Foundations of AI and Machine Learning for Java Developers
Prompt tips
- [Instructor] We have learned that you program a large language model using text and giving it an initial prompt, and we know that creating your good prompt will give us good results. So let's learn how to create a good prompt. There are some rules of thumb and some heuristics when designing a prompt, so let's go over a few of them. The first one is that to start simple. Designing prompts is an iterative process, so it should start with a simple prompt. You may learn that you have to reword a prompt. You may also have to add more relevant information to the prompt or delete some information, or you may have to give some examples in the prompt. Of course, as any experienced software developer knows, you should test the changes to your prompt to see if you get a better completion or not. A common rule of thumb for any software project is to start simple, test your results, and then iterate. Prompt design is no different. The second tip is to be very clear and very specific. We have…
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.