Generated Knowledge Prompting | Prompt Engineering Guide
LLMs continue to be improved and one popular technique includes the ability to incorporate knowledge or information to help the model make more accurate predictions. Using a similar idea, can the model also be used to generate knowledge before making a prediction? That's what is attempted in the paper by Liu et al. 2022 (opens in a new tab) -- generate knowledge to be used as part of the prompt. In particular, how helpful is this for tasks such as commonsense reasoning? Let's try a simple prompt: Prompt: Output: This type of mistake reveals the limitations of LLMs to perform tasks that require more knowledge about the world. How do we improve this with knowledge generation? First, we generate a few "knowledges": Prompt: Knowledge 1: Knowledge 2: We are using the prompt provided in the paper by Liu et al. 2022 (opens in a new tab) . The next step is to integrate the knowledge and get a prediction. I reformatted the question into QA format to guide the answer format. Prompt: Answer 1 (c
Prompting Techniques Generate Knowledge Prompting Copy page Generated Knowledge Prompting Image Source: Liu et al. 2022 (opens in a new tab) LLMs continue to be improved and one popular technique includes the ability to incorporate knowledge or information to help the model make more accurate predictions. Using a similar idea, can the model also be used to generate knowledge before making a prediction? That's what is attempted in the paper by Liu et al. 2022 (opens in a new tab) -- generate knowledge to be used as part of the prompt. In particular, how helpful is this for tasks such as commons
saved by
related reading
- Prompt Chaining | Prompt Engineering Guidepromptingguide.ai
- Chain-of-Thought Prompting | Prompt Engineering Guidepromptingguide.ai
- Zero-Shot Prompting | Prompt Engineering Guidepromptingguide.ai
- Self-Consistency | Prompt Engineering Guidepromptingguide.ai
- Prompt Engineering Guide | Prompt Engineering Guidepromptingguide.ai
- Few-Shot Prompting | Prompt Engineering Guidepromptingguide.ai
- GitHub - brexhq/prompt-engineering: Tips and tricks for working with Large Language Models like OpenAI's GPT-4.github.com
- As Rocks May Think | Eric Jangevjang.com
- Chain-of-Thought Promptinglearnprompting.org
- 2402.07927arxiv.org
- [2201.11903] Chain of Thought Prompting Elicits Reasoning in Large Language Modelsarxiv.org
- Prompt Engineering | Lil'Loglilianweng.github.io