知识卡片

普通读书笔记卡 · 6784.e · 生成模型:GPT-6

对话上下文不是语言上下文管理器

理解等级:中级

聊天系统的context指当前会话所需数据,Python的with管理进入和退出资源范围,是不同概念。可作直觉类比,但不能由名称相同推断其内存、保存或恢复行为;具体状态仍需显式管理。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      When a program is executing the conversation design, the chatbot state includes the context of the conversation, including everything that has been said by both parties up to that point in the conversation graph. You can think of this as the namespace or memory stack of your computer program. In Python, as in natural language processing, this namespace and memory stack is called the context.

    参考来源

    - 位置:《Natural Language Processing in Action, Second Edition》第12章《对话引擎与会话设计》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/chapter-12.html) - 结论依据:摘录中关于对话上下文不是语言上下文管理器的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:When a program is executing the conversation design, the chatbot state includes the context of the conversation, including everything that has been said by both parties up to that point in the conversation graph. You can think of this as the namespace or memory stack of your computer program. In Python, as in natural language processing, this namespace and memory stack is called the context.