-
Book Overview & Buying
-
Table Of Contents
Supercharged Coding with GenAI
By :
GenAI applications excel in certain aspects of coding and often achieve high scores in coding assignment tests. Ongoing improvements to these models continue to push the boundaries, as they begin to master a wide range of coding-related tasks and supercharge the way we develop and refine code.
To achieve good results from GenAI applications, we will focus on three pillars: model mastery of the specific task at hand, evaluation metrics to critically assess the output, and crafting precise prompts to clearly achieve the desired outcome.
This chapter focuses on best practices for crafting prompts in coding-related tasks, guided by the five S’s: structured prompt, including surrounding context, focusing on a single task, providing specific instructions, and keeping the prompt as short as possible. Later in the book, we will delve into advanced prompt engineering techniques, methods to construct manual and automatic evaluation metrics...