简单内存节点常见问题(Simple Memory node common issues)#
这里是一些关于 Simple Memory 节点 的常见错误和问题,以及解决或排查它们的步骤。
🌐 Here are some common errors and issues with the Simple Memory node and steps to resolve or troubleshoot them.
单内存实例(Single memory instance)#
如果在工作流中添加多个简单内存节点,默认情况下所有节点都将访问相同的内存实例。在执行会覆盖现有内存内容的破坏性操作时要小心,例如在 聊天内存管理器 节点中的“覆盖所有消息”操作。如果希望在工作流中使用多个内存实例,请在不同的内存节点中设置不同的会话 ID。
🌐 If you add more than one Simple Memory node to your workflow, all nodes access the same memory instance by default. Be careful when doing destructive actions that override existing memory contents, such as the override all messages operation in the Chat Memory Manager node. If you want more than one memory instance in your workflow, set different session IDs in different memory nodes.
管理会话 ID(Managing the Session ID)#
在大多数情况下,sessionId 会从 聊天消息 触发器中自动获取。但你可能会遇到包含 No sessionId 的错误。
🌐 In most cases, the sessionId is automatically retrieved from the On Chat Message trigger. But you may run into an error with the phrase No sessionId.
如果你遇到此错误,首先检查你的聊天触发器的输出,确保其中包含 sessionId。
🌐 If you have this error, first check the output of your Chat trigger to ensure it includes a sessionId.
如果你没有使用 On Chat Message 触发器,你需要手动管理会话。
🌐 If you're not using the On Chat Message trigger, you'll need to manage sessions manually.
为了测试目的,你可以使用像 my_test_session 这样的静态密钥。如果采用这种方法,请确保在发布工作流之前设置好适当的会话管理,以避免在实际环境中出现潜在问题。
🌐 For testing purposes, you can use a static key like my_test_session. If you use this approach, be sure to set up proper session management before publishing the workflow to avoid potential issues in a live environment.