Prompt engineering for text generation: Difference between revisions

Line 44: Line 44:
'''Query and output indicator''': 2023:
'''Query and output indicator''': 2023:
</poem>
</poem>
Instruction: Identify the president of the United States of America for the given year, considering that GPT-4's knowledge is limited to information up until September 2021. We need to provide some context to help with the task. Joe Biden is the president of the United States in 2022 and 2023.
<poem style="border: 1px solid; padding: 1rem">
Context:
#1861-1865: Abraham Lincoln was the 16th president of the United States.
#1933-1945: Franklin D. Roosevelt was the 32nd president of the United States and served four terms.
#1961-1963: John F. Kennedy was the 35th president of the United States.
#2009-2017: Barack Obama was the 44th president of the United States.
#2021-2025: Joe Biden is the 46th president of the United States.
'''Examples:'''
*1801: Thomas Jefferson
*1901: William McKinley
*1981: Ronald Reagan
*2001: George W. Bush
'''Query and output indicator:'''
*1945:
*2017:
*2023:
</poem>


====Output====
====Output====
370

edits