简体   繁体   English

IBM Watson Assistant:如何过滤“其他”消息?

[英]IBM Watson Assistant: How can I filter messages for “anything else”?

In Analytics > User conversations, I would like to filter out the messages which my Watson Assistant was unable to answer in its conversations, ie, when it returns the anything_else reply. 在“分析”>“用户对话”中,我想过滤掉Watson Assistant在对话中无法回答的消息,即当它返回any_else答复时。

But since anything_else is not an intent nor an entity, I can't filter messages by it in the UI. 但是由于everything_else既不是意图也不是实体,因此我无法在UI中通过它过滤消息。 Is it possible to therefore filter messages by the assistant's reply, like you can with user statements? 因此,是否可以像使用用户语句一样通过助手的答复过滤邮件? That way I can filter out each time the assistant answered "I don't understand". 这样,我每次助理回答“我听不懂”时就可以过滤掉。

IBM Watson Assistant offers the log in the Analytics section of it UI and, IMHO more powerful, via REST API with filter expressions . IBM Watson Assistant在UI的Analytics(分析)部分中提供了日志,而IMHO通过具有过滤表达式的REST API提供了更强大的功能。 With that API you can either download all logs and filter "offline" or apply some expressions. 使用该API,您可以下载所有日志并过滤“离线”或应用某些表达式。 I recommend reading the documentation about how to query the "other" fields which includes the user responses. 我建议阅读有关如何查询“其他”字段 (包括用户响应)的文档。

I have written Python tools for Watson Assistant using the V1 and V2 APIs. 我已经使用V1和V2 API 为Watson Assistant编写了Python工具 The V1 tool is able to download or query the logs. V1工具能够下载或查询日志。 An option is to download all available logs, then use jq to filter them. 一种选择是下载所有可用日志,然后使用jq过滤它们。

python wctool.py -logs -config config.json.event -id 28ac4bcb-2aae-41aa-87ac-2e6074e1356a > logs201904.out

This gives you the information about which nodes were visited: 这为您提供了有关访问了哪些节点的信息:

cat logs201904.out | jq -r '.logs | .[]
       | .response.output.nodes_visited   '

Filter for log records that visited "Anything else": 筛选访问“其他”的日志记录:

cat logs201904.out | jq -r '.logs | .[] | .response | select( 
    .output.nodes_visited[] | contains("Anything else")) '

anything_else means either an intent was not found, or the confidence was < 0.2. anything_else表示未找到意图,或置信度<0.2。

Filter looking for intents = [], or confidence of first intent is below 20% 筛选以查找意图= [],或第一个意图的置信度低于20%

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将IBM Watson Assistant与Watson Discovery链接 - How can I link IBM Watson Assistant with Watson Discovery IBM Watson Assistant:如何将图像作为聊天机器人响应发送 - IBM Watson Assistant: How can I send an image as chatbot response 如何在 IBM Watson Assistant 的意图中查看用户示例? - How can I see user examples in Intents in IBM Watson Assistant? IBM Watson Assistant:您如何确定 Watson Assistant Actions 中是否使用了电话? - IBM Watson Assistant: How can you determine if telephony is being used in Watson Assistant Actions? 如何在IBM Watson Assistant(对话)中获取有效的@ sys-time? - How I can get the vaule @sys-time in IBM Watson Assistant (Conversation)? IBM Watson Assistant,如何从阵列中删除多个项目? - IBM Watson Assistant, how can I remove multiple items from an array? IBM Watson Assistant:如何处理来自对话框的上下文变量? - IBM Watson Assistant: How can i handle context variable coming from the dialog? IBM Watson Assistant:我应该如何对实体进行分组? - IBM Watson Assistant: How should I group the entities? 如何在IBM Watson Assistant中插入一个复选框? - How do i insert a checkbox in the IBM Watson Assistant? 如何使用 Watson Assistant API 创建助手? - How can I use the Watson Assistant API to create an assistant?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM