Slide 23
Slide 23 text
Key components of a good LLM prompt:
Task instruction: Clearly state the desired action, like "Summarize this text", "Write a poem
about...", or "Explain the concept of...".
Contextual information: Provide relevant background details or specific data points to help
the LLM understand the situation.
Example prompts (few-shot prompting): If necessary, include a couple of example inputs
with the desired outputs to show the LLM the format you expect.
Constraints or guidelines: Specify any limitations on the response, such as length, tone, or
style.
Open-ended questions: For more in-depth responses, ask questions that encourage
explanation and reasoning.