Prompt strategy
In this chapter, we will use the TAG (Task-Action-Guidance) prompt pattern. Here’s how we can help frame our project to help us author our initial prompt:
- Task: Regression analysis on Apple stock value through history
- Action: We will need to instruct the AI assistant to tell us what steps to take
- Guidance: The guidance should be us describing the dataset
Your initial prompt
Just like with other chapters in this book, we start with a prompt providing as much context as possible about what we want to do and the shape of the dataset. The idea is that we set a high-level context for our AI tool, which helps guide it throughout the rest of our prompts.
[Prompt]
I’m performing a regression project to forecast stock prices using the Apple Historical Stock dataset. This will aid investors in making informed decisions about buying or not buying stocks. The workflow includes loading the dataset, exploring its contents...