Ask HN:ReAct 与规划模式

3作者: hairymouse3 天前
我的问题可能听起来很愚蠢,但 ReAct 模式似乎总是奏效,并且确实能带来很好的结果。另一方面,我们有规划模式,说实话,我无法想象它在生产系统中究竟是如何使用的。我不确定这是否正确,但它的技术实现方式是,你给 LLM 上下文,然后告诉它,“嘿,给我你的解决这个问题的计划”。这样它就会制定出计划,但它不会在 ReAct 模式下也遵循同样的计划来解决同一个问题吗?我想向那些在生产中实际使用过规划模式的人学习,你们是如何以及为何使用它的?你们如何强制 LLM 严格遵循计划?
查看原文
My question might seem stupid, but ReAct pattern seems to always work and actually gives great results in the other hand we have the plan pattern and to be honest i cannot think of how it's exactly used in production system, im not sure if this is correct but how it's technically implemented is you give the LLM context and you tell it, hey give me your plan to how you will solve this thing, so now it will build the plan but won't it also follow the same plan in the ReAct pattern to solve that exact problem? I want learn from people that used the planning pattern in production, how and why you used it? and how do you enforce the LLM the follow the plan exactly?