-
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: When should we use prompt engineering?
Answer: Prompt engineering should follow best practices to achieve desirable outcomes from LLMs. However, when standard guidelines are insufficient, advanced prompting techniques may be necessary. In this chapter, we saw how few-shot learning helped align outputs with a specific style guide, making results more predictable and desirable.
Question 2: Can we use plain English to describe the desired outcome instead of providing few-shot examples in code?
Answer: While it is theoretically possible to use plain English to describe coding styles and desired outputs, this approach is less effective. Like mathematical equations or music notes, code acts as a concise and precise notation system. LLMs, trained extensively on code, interpret it more accurately than plain-text descriptions.