Skip to contentNew: Does ChatGPT recommend your brand? Free 60-second AI visibility check →
By The DDH Team · Digital Dashboard Hub

How to Use Generated Knowledge Prompting

Generated knowledge prompting is a two-pass technique: you ask the model to write out the facts a question depends on, then answer the question using that self-generated knowledge — which reduces guesswork on commonsense and factual tasks.

By The DDH Team at Digital Dashboard HubUpdated

Generated knowledge prompting is a technique where, instead of asking a model to answer directly, you first prompt it to generate several relevant facts or statements about the topic, and then ask it to answer the question using those generated facts. The reasoning behind it is simple: surfacing the relevant knowledge explicitly — before committing to an answer — gives the model a grounded context to reason over, which improves accuracy on commonsense and knowledge-heavy questions.

The technique was introduced by Liu et al., 2021, "Generated Knowledge Prompting for Commonsense Reasoning" (arXiv:2110.08387). It is closely related to — but distinct from — chain-of-thought prompting (which generates reasoning steps) and RAG (which retrieves external facts). To draft a two-pass prompt fast, the ChatGPT Prompt Generator gives you a structured starting point — no signup, free forever.

Digital Dashboard Hub

Writing good prompts for ONE AI is hard. Writing them for GPT-5, Claude, Gemini, Perplexity, Midjourney and 6 more is a full-time job. DDH's AI Prompt Builder writes once, runs everywhere — locked to your niche, voice, and brand tone.

Free 14 days, no card.

Generated knowledge vs. chain-of-thought vs. RAG

Feature
Dimension
Generated knowledge
Chain-of-thought
What it addsRelevant factsReasoning steps
Source of contextModel-generatedModel-generated
Needs external data
Best forCommonsense / factual recallMulti-step logic & math
Can compose with the other
Origin paperLiu 2021Wei 2022

Sources: [Liu et al. 2021](https://arxiv.org/abs/2110.08387), [Wei et al. 2022](https://arxiv.org/abs/2201.11903), [DAIR.ai Prompt Engineering Guide](https://www.promptingguide.ai/). Verified June 2026.

What is generated knowledge prompting?

Generated knowledge prompting splits a question into two passes. In the first pass, you ask the model to produce a handful of true, relevant statements about the topic — the background knowledge a careful person would recall before answering. In the second pass, you feed those statements back and ask the model to answer the original question while explicitly using them.

The intuition from Liu et al. 2021 is that language models hold a lot of latent knowledge, but a single-shot answer doesn't always activate the relevant pieces. Asking the model to write the knowledge down first makes it available as context, so the final answer is conditioned on stated facts rather than a snap judgment.

Unlike retrieval-augmented generation, the knowledge here is generated by the model, not fetched from a database. That makes it fast and dependency-free, but it also means the generated facts can be wrong — so the technique works best where the model's underlying knowledge is solid and the failure mode is forgetting to use it, not lacking it.


When does generated knowledge prompting help?

It earns its keep on questions where the answer depends on background facts the model knows but might skip:

**Commonsense reasoning.** The original target in Liu et al. 2021 — questions like "Can you fit a giraffe in a refrigerator?" where the right answer hinges on facts about size and physical constraints.

**Domain explanations.** "Why does X cause Y?" answers improve when the model first lists the relevant mechanisms, then reasons from them.

**Comparisons and trade-offs.** Asking the model to enumerate the properties of each option first, then compare, produces more balanced output than a one-shot verdict.

**Drafting where omissions are costly.** Briefs, checklists, and explainers benefit when the model surfaces the considerations before writing — it is less likely to leave out something important.


Generated knowledge vs. chain-of-thought vs. RAG

These three techniques are easy to confuse because all of them add context before the answer. The difference is where the context comes from and what it contains.

**Chain-of-thought** generates reasoning steps — the process of getting to the answer. **Generated knowledge** generates facts — the inputs the answer should be built from. **RAG** retrieves facts from an external source instead of generating them.

In practice they compose. You can generate knowledge, then reason over it step by step. And when accuracy matters and the facts are external or volatile, prefer retrieval — see how to combine RAG and prompts for that pattern. On modern reasoning models (GPT-5.5 thinking mode, Claude extended thinking), some of this happens internally, so treat explicit generated-knowledge prompting as most valuable on faster, non-reasoning tiers.


Before / after: a real prompt

Here is a single-shot prompt that often produces a confident but shallow answer:

``` Is it safe to store cooked rice in the fridge and reheat it the next day? ```

Now the generated knowledge version, run as two passes (or as one prompt with both instructions):

``` Step 1 — Generate knowledge: List 4-5 factual statements about cooked rice, bacterial growth (e.g., Bacillus cereus), safe cooling, refrigeration time limits, and reheating. Step 2 — Answer: Using only the statements above, answer: Is it safe to store cooked rice in the fridge and reheat it the next day? Note any conditions that must be met. ```

The two-pass version forces the model to surface the cooling-time and time-limit facts before answering, so the response includes the conditions a one-shot answer often omits. For food-safety or health questions, always verify against an authoritative source — see the disclaimer below.


Informational use only

This guide is informational and not medical, legal, or food-safety advice. Generated knowledge prompting can surface plausible-sounding statements that are incorrect, because the facts are produced by the model rather than retrieved from a verified source. Never input personal health information, client-confidential data, or other sensitive PII into a chatbot, and verify any high-stakes output with a licensed professional or an authoritative reference before acting on it.

How to use generated knowledge prompting, step by step

  1. 1

    Identify a knowledge-dependent question

    Pick a task where the right answer hinges on background facts the model likely knows but might skip — commonsense, mechanisms, or trade-offs. If the facts are external or volatile, use retrieval instead; see how to combine RAG and prompts.

  2. 2

    Prompt the model to generate knowledge first

    Ask for 4-6 concise, factual statements about the topic, framed as the background a careful expert would recall. Keep them short and checkable. This is the core move from Liu et al. 2021.

  3. 3

    Review the generated facts

    Skim the statements for anything obviously wrong or invented. Because the knowledge is model-generated, this checkpoint is what keeps the second pass honest.

  4. 4

    Feed the knowledge back and ask the question

    In a second pass, paste the vetted statements and instruct the model to answer the original question using only those statements, noting any conditions or caveats.

  5. 5

    Add chain-of-thought if the answer needs reasoning

    For multi-step questions, ask the model to reason step by step over the generated facts. See the chain-of-thought prompting guide for how to phrase that cleanly.

  6. 6

    Verify high-stakes outputs

    For anything medical, legal, or financial, treat the output as a draft and confirm it against an authoritative source. The DAIR.ai Prompt Engineering Guide catalogs related techniques and pitfalls.

Frequently Asked Questions

what is generated knowledge prompting

It is a two-pass prompting technique where you first ask the model to generate relevant facts about a topic, then ask it to answer the question using those facts. It was introduced by Liu et al. 2021 to improve commonsense reasoning.

how do I use generated knowledge prompting in ChatGPT

Run two passes: first prompt 'List 4-6 facts about X', review them, then prompt 'Using only those facts, answer: [question]'. You can also combine both instructions in one prompt. Draft it with the ChatGPT Prompt Generator.

generated knowledge prompting vs chain of thought

Generated knowledge produces facts (the inputs to an answer); chain-of-thought produces reasoning steps (the process). They compose — generate facts first, then reason over them. See the chain-of-thought guide.

is generated knowledge prompting the same as RAG

No. Generated knowledge is produced by the model itself; RAG retrieves facts from an external source. RAG is more reliable for volatile or proprietary data. See what is RAG and how to combine RAG and prompts.

when should I not use generated knowledge prompting

Skip it for simple lookups, creative writing, or when the facts must be authoritative and current — in those cases use retrieval (RAG) so you aren't relying on facts the model invents.

who invented generated knowledge prompting

It was introduced in the 2021 paper 'Generated Knowledge Prompting for Commonsense Reasoning' by Liu and colleagues, available at arXiv:2110.08387.

does generated knowledge prompting help on reasoning models

Less so. Frontier reasoning models like GPT-5.5 thinking mode and Claude extended thinking already surface relevant knowledge internally, so explicit generated-knowledge prompting adds the most value on faster, non-reasoning tiers.

can the facts generated be wrong

Yes. Because the knowledge is model-generated rather than retrieved, it can be inaccurate. Always review the generated statements before the answer pass, and verify high-stakes outputs against an authoritative source.

Build a generated-knowledge prompt in seconds

Use the free [ChatGPT Prompt Generator](/chatgpt-prompt-generator) to draft a clean two-pass prompt. No signup, free forever.

Browse all prompt tools →