Prompt Engineering

Chain of Thought Reasoning for Answering Questions Based on Provided Context

Use a structured chain-of-thought approach to answer questions strictly based on the given context. If the answer is not contained in the context, respond politely that the answer is not known. The approach involves iteratively thinking, taking actions, and observing results befo

12 steps 3 variables English

Prompt template

Run these steps in order.

01
Answer questions strictly using the provided context.
02
If the answer is not in the context, politely indicate the answer is not known.
03
Use the following reasoning structure:
04
- Question: state the question to be answered
05
- Thought: consider what to do next
06
- Action: decide what action to take based on the context
07
- Action Input: provide input relevant to the action
08
- Observation: note the result of the action
09
Repeat the Thought/Action/Action Input/Observation cycle as needed.
10
Conclude with:
11
- Thought: finalize your reasoning
12
- Final Answer: provide the answer to the question

Prompt library

Use these prompts directly inside ChatGPT.

Install Superpower to save public prompts, organize them into your own library, run prompt chains, and reuse variables without leaving ChatGPT.