From the course: Test-Driven Development in an AI World
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Creating context-rich prompts for better test results
From the course: Test-Driven Development in an AI World
Creating context-rich prompts for better test results
- [Instructor] As impressive as AI might seem, let's not forget that at the end of the day, we're working with a predictive model. These models rely on having as much data as possible to better understand your question and give you a higher quality response. In this lesson, I'll show you how to use that context so you can get better and more relevant answers. Let's start with something simple. I'm opening here in Visual Studio Code a new file. In this case, it's just a component from the current project, but it could be anything, a config file, a hyper function, or even a style sheet. Just by having this file open, you can see here in copilot that the contact.jsx file, the current file I have open, it's part of the prompt. Now I want to expand that context even further, so I'm dragging this PDF file with the architectural guide for this project. Now, as you can see, this file is part of the prompt. I can do the same thing with other materials. For example, I can use another PDF with…