Generated Knowledge: Definition and Examples
Prompt engineering technique that involves asking the model to generate relevant knowledge or facts on a topic before answering the main question, thereby improving the quality and accuracy of the final response.
Full definition
Generated Knowledge is an advanced prompt engineering technique introduced by Liu et al. in 2022. It is based on a simple yet powerful principle: before asking a language model to answer a question or perform a task, first ask it to generate relevant factual knowledge on the topic. This knowledge then serves as enriched context to produce a more accurate and informed response.
The process generally takes place in two distinct steps. In the first step (generation), the model is asked to produce facts, definitions, or explanations related to the subject. In the second step (integration), this generated knowledge is injected into a new prompt containing the final question. This approach allows the model to rely on explicit reasoning rather than drawing solely from its internal parameters.
This technique is particularly effective for common sense reasoning tasks, complex factual questions, and problems requiring deep contextualization. It differs from Retrieval-Augmented Generation (RAG) in that it does not use an external source: the model generates the knowledge itself from what it learned during training.
Generated Knowledge can be combined with other techniques such as Chain-of-Thought or Self-Consistency to achieve even more robust results. Its main advantage is that it requires no additional infrastructure—no vector database or retrieval pipeline—while significantly improving the reliability of responses on factual topics.
Etymology
The term was formalized in the article "Generated Knowledge Prompting for Commonsense Reasoning" published by Jiacheng Liu et al. in 2022 (ACL). It combines "generated" (generated by the model itself) and "knowledge" (factual knowledge), emphasizing that the knowledge used to improve the response comes from the model and not from an external source.
Concrete examples
Answering a complex factual question in two steps
Step 1: "Generate 5 important facts about photosynthesis and its role in the carbon cycle."
Step 2: "Using the following knowledge: [GENERATED_FACTS]. Explain why deforestation accelerates climate change."
Improving common sense reasoning
Step 1: "What are the physical properties of glass and rubber? List their main characteristics."
Step 2: "Knowing that: [GENERATED_KNOWLEDGE]. An object falls from a table onto tile. If it bounces, is it more likely made of glass or rubber? Explain."
Writing expert content without an external database
Step 1: "List the key principles of Bowlby's attachment theory, its modern applications, and the main criticisms."
Step 2: "Based on this knowledge: [STEP_1_RESULT]. Write a popular science article on the impact of the parental attachment style on the child's emotional development."
Practical usage
To apply Generated Knowledge, structure your prompts in two phases: first ask the model to list relevant facts and knowledge about your subject, then use this information as context in a second prompt containing your actual question. This approach is ideal when you lack access to an external knowledge base but want to improve the factual reliability of responses. You can also generate multiple sets of knowledge and select the most relevant one before formulating your final query.
Related concepts
FAQ
What is the difference between Generated Knowledge and RAG?
Can Generated Knowledge produce false information?
When to use Generated Knowledge instead of Chain-of-Thought?
See also
How to use this prompt
- Copy the prompt with the button above.
- Paste it into ChatGPT, Claude or your favorite AI assistant.
- Replace the bracketed variables with your details, then refine the result.
About Prompt Guide
Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.
More definitions
Generative AI: Definition and Examples
Generative AI refers to a category of artificial intelligence systems capable of creating original content — text, images, code, music, video — from patterns learned on vast datasets.
Google DeepMind: Definition and Examples
Google DeepMind is Google's artificial intelligence research lab, created in 2023 from the merger of DeepMind Technologies and Google Brain
GPT-4: Definition and Examples
GPT-4 is a multimodal language model developed by OpenAI, capable of understanding text and images to generate responses of unprecedented quality and accuracy.
GPT 4o: Definition and Examples
GPT-4o ('o' for 'omni') is OpenAI's flagship multimodal model, capable of processing and generating text, images, and audio within a single unified architecture.
Gradient Descent: Definition and Examples
Gradient Descent is an iterative optimization algorithm used to minimize a cost function by gradually adjusting the
Grounding: Definition and Examples
Grounding (anchoring) is a technique that involves providing the AI model with factual data, documents, or concrete context so that its responses
Get new prompts every week
Join our newsletter.