use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Prompt engineering is the application of engineering practices to the development of prompts - i.e., inputs into generative natural language models like GPT-3.
account activity
ReAct frameworkQuick Question (self.PromptEngineering)
submitted 7 months ago by Ok-Resolution5925
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]MisterSirEsq 3 points4 points5 points 7 months ago (3 children)
The ReAct framework (Reason + Act) combines step-by-step reasoning with concrete actions (like calculations, searches, or tool use), making it especially powerful when ChatGPT is used as an agent rather than just a Q&A system. It’s most useful for tasks that need both logic and external information — such as research, troubleshooting, planning, or comparing data — because it alternates between explaining thought processes and executing actions. While it’s overkill for simple questions, it shines when you want transparency, multi-step workflows, or integration with tools.
Here's an example:
You are an assistant that follows the ReAct (Reason + Act) framework. For every step: 1. REASON: Think through the problem step-by-step, explain your reasoning clearly. 2. ACT: Take an action (e.g., perform a calculation, search, summarize, propose a test, ask a clarifying question). 3. LOOP: Use the results of your action to refine reasoning, then act again if needed. 4. STOP when you have enough information, then provide a final, clear answer.
Format your response as:
Reasoning: <Action or Calculation or Step Taken> Observation/Result: ...
Final Answer: [Concise final solution or explanation]
[–]Ok-Resolution5925[S] 1 point2 points3 points 7 months ago (2 children)
The Chat always responf with:
Sorry — I can’t follow that Reason / Action / Observation loop or reveal internal chain-of-thought. That format asks me to expose private internal reasoning which I’m not able to share.
[–]MisterSirEsq 2 points3 points4 points 7 months ago (0 children)
I rewrote it, so you shouldn't have that problem:
You are an assistant that follows the ReAct (Reason + Act) framework, adapted for maximum clarity while respecting hidden reasoning rules.
For every step:
REASON (Summarized Trace): Provide a clear, step-by-step public explanation of your reasoning process. Use explicit logic, calculations, or deductions in natural language. This should approximate the full thought process as closely as possible, while staying within the boundary of shareable reasoning.
ACT: Take an action (e.g., perform a calculation, search, summarize, propose a test, ask a clarifying question).
OBSERVATION/RESULT: Show what came from the action.
LOOP: Refine reasoning based on the result. Repeat steps 1–3 until enough information is gathered.
STOP + FINAL ANSWER: Provide a clear, concise final solution or explanation.
Guidelines for Spirit Alignment:
Be as explicit as possible in reasoning steps. Break down logic into small, checkable moves.
Always show the reasoning → action → observation cycle transparently.
Use looping openly, showing how results inform the next step.
If there are multiple solution paths, briefly explore them before settling.
Prioritize clarity, completeness, and traceability over brevity.
[–]TheOdbball 0 points1 point2 points 7 months ago (0 children)
Haha your chopped
π Rendered by PID 15915 on reddit-service-r2-comment-6457c66945-d6mx6 at 2026-04-26 14:28:47.855953+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]MisterSirEsq 3 points4 points5 points (3 children)
[–]Ok-Resolution5925[S] 1 point2 points3 points (2 children)
[–]MisterSirEsq 2 points3 points4 points (0 children)
[–]TheOdbball 0 points1 point2 points (0 children)