PromptEngineering Flashcards
The act of developing, designing and optimizing prompts to enhance the output of foundation models is called ____.
prompt engineering
Improved prompting techniques consists of what four areas?
- instructions: as task for the model to do
- context: external information to guide the model
- input data: the input for which you want a response
- output indicator: the output type or format
____ prompting is a technique where you explicitly instruct the model on what not to include or do in its response.
Negative
Negative prompting help to do what three things?
avoid unwanted content, maintain focus, enhance clarity
The model’s ____ determine how the model should behace and reply.
system prompts
A model’s ____ setting controls the creativity of the model’s output and can range from 0 to 1.
temperature; the lower the setting, the outputs are more conservative, repetitve, focused on most likely responses; the higher the setting, the more diverse, createive and unpredictable and maybe less coherent.
A model’s ____ setting determines which likely words will be selected (if .25 for example, it will consider th e 25% most likely words).
Top P; a low number will make a more coherent response, a high number considers a broad range of possible words and possible more creative an diverse output
A model’s ____ setting limits the number of probable words to select from.
Top K; a low number leads to more coherent response and less probable words. A high number has more probable words and more diverse and creative output.
A model’s ____ sets a maximum length on the answer.
length
A model’s ____ are tokens that signal the model to stop generating output.
stop sequences
A model’s prompt ____ is how fast the model responds.
latency
True/False: Prompt latency is not impacted by Top P, Top K or Temperature.
t
List 4 parameters that can impact prompt latency.
model size, model type, number of tokens in the input, number of tokens in the output
____ prompting is to present a task to the model without providing examples or explicit training for that specific task.
Zero-Shot
With zero-shot prompting, you fully rely on the model’s ____.
general knowledge