Prompting Engineering
Basic Prompting
Direct Instruction
prompt = "Translate the following English text to Spanish: Hello, how are you?"Zero-Shot Prompting
prompt = """Classify the sentiment of the following review as positive, negative, or neutral:
Review: "The product arrived late, but the quality exceeded my expectations."
Sentiment:"""Few-Shot Prompting
Example: Sentiment Analysis with Few-Shot Learning
Last updated
Was this helpful?