What is a prompt and why is it important?
In the context of generative AI, a prompt refers to the input the user provides to the generative models. When we talk about ChatGPT and OpenAI models, prompts mainly refer to a piece of text in natural language or – as we saw for Codex models – in programming languages.
Prompts are the only way users can control the output generated by those models. As such, there is no surprise in saying that the quality of the prompts used to engage the AI system in a conversation is key to determining its success.
Well-defined prompts are the recipe for a successful conversation that covers the topics of interest; poorly-defined prompts, on the other hand, not only prevent the conversation from being useful to the user but could also lead to potentially misleading content. As we saw in the previous chapter, ChatGPT still suffers from some limitations, such as the 2021 cut-off of its knowledge base, as well as another caveat typical of...