Enhancing Response Depth through Generated Knowledge Prompting
Generated Knowledge Prompting
is a technique where useful information is generated first to enhance the final response to a question.
AI creates knowledge by preemptively recognizing necessary information for problem-solving, and it refers to this pre-generated knowledge when forming the final response.
This can be structured as a single prompt, combining knowledge generation and response writing into one, or as dual prompts, separating the two stages.
Generated knowledge prompting, abbreviated as GKP
, has shown to improve response accuracy on commonsense reasoning problems from 64.05% to 70.92% according to the Allen Institute's paper.
How to Utilize It?
Here's how to utilize a single prompt to generate knowledge and create a response at once.
Generate 4 facts about Labradors and use that information to write a short blog post.
1. Labradors are a popular breed originally from Newfoundland.
2. They are known for their intelligence and friendly demeanor.
3. Labrador Retrievers are often used as guide dogs and therapy animals.
4. They typically have a short, dense, water-resistant coat.
Blog Post:
Labradors are a beloved dog breed originating from Newfoundland,
celebrated for their intelligence and friendly nature.
Often used as guide dogs, Labradors also serve as therapy animals,
thanks to their calming presence and understanding disposition.
Their short, dense, and water-resistant coat makes them excellent swimmers,
and they continue to be adored by many for various roles they fill in different communities... (continued)
By utilizing a dual prompt system like the example below, knowledge is generated first, then used to craft a final response.
List 4 considerations for investing in the stock market during a downturn.
1. Remain Objective and Avoid Emotional Decisions:
During a downturn, investors might be overwhelmed by fear.
It’s crucial to avoid emotional decision-making... (continued)
2. Invest with a Long-term Perspective:
Downturns can be temporary, and markets tend to recover over time.
It’s important not to react hastily to short-term volatility... (continued)
3. ...(continued)
4. ...(continued)
Using the 4 considerations developed above,
draft a blog post explaining key points to be aware of
when investing in the stock market during a downturn.
This Generated Knowledge Prompting
technique encourages AI to pre-create necessary information, guiding it to leverage this when writing its final responses.
Practice
Test prompt examples and compare AI responses.
Want to learn more?
Join CodeFriends Plus membership or enroll in a course to start your journey.