Rasa 文档 中英文翻译版本 5 - User Guide: Architecture

本文详细介绍了使用Rasa构建的聊天机器人内部工作流程,从消息接收、解释与意图识别,到对话状态跟踪、策略决策及用户响应生成,深入剖析了Rasa的核心组件及其交互过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Rasa 文档 中英文翻译版本 5 - User Guide: Architecture

https://rasa.com/docs/rasa/user-guide/architecture/

 

T by yi 2020.9.15

 

Architecture 架构

Message Handling 消息处理

This diagram shows the basic steps of how an assistant built with Rasa responds to a message:

下面的图显示了一个机器人处理如何使用Rasa回复消息的基本步骤

 

 

The steps are: 步骤

  1. The message is received and passed to an Interpreter, which converts it into a dictionary including the original text, the intent, and any entities that were found. This part is handled by NLU.

2. The Tracker is the object which keeps track of conversation state. It receives the info that a new message has come in.

3. The policy receives the current state of the tracker.

4. The policy chooses which action to take next.

5. The chosen action is logged by the tracker.

6. A response is sent to the user.

 

1.消息被接收并传递给解释器Interpreter,该解释器将其转换为包括原始文本、意图和找到的任何实体字典。此部分由 NLU 处理。

2. 跟踪器Tracker 是跟踪会话状态的对象。它负责接收是否有了新的对话消息

3. 策略policy 接收跟踪器tracker的当前状态。

4. 策略policy 选择下一步行动。

5. 所选下一步行动操作由跟踪器tracker记录。

6. 向用户发送响应。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值