-
Book Overview & Buying
-
Table Of Contents
Supercharged Coding with GenAI
By :
Before you proceed to the next chapter, make sure that you can confidently answer the following questions:
Question 1: Is prompt engineering always necessary when working with GenAI?
Answer: Not always. For tasks with a smaller scope, such as implementing a short function, the five S’s framework is often enough to guide the model toward a good result. Prompt engineering becomes more important when the task grows in complexity, requiring us to either break it into smaller parts or guide the model with reasoning steps to help it succeed.
Question 2: How is CoT applied with GitHub Copilot?
Answer: To apply CoT with Copilot, we specify our reasoning steps in abstracted functions. This approach helps Copilot understand the reasoning behind the desired implementation, allowing it to generate the next lines of code with minimal input, often just by hitting Enter.
Question 3: Is chat history irrelevant when using prompt chaining?
Answer: No. In chaining...