测试Lex bot与Kendra Search Intent时出错。

0

【以下的问题经过翻译处理】 当测试包含KendraSearchIntent的Lexbot时,收到了以下错误信息。我按照这个指南将这个intent添加到bot中。https://docs.aws.amazon.com/lex/latest/dg/faq-bot-kendra-search.html根据指南,我使用了内置的Kendra intent。在创建intent时,我选择了添加Amazon Kendra权限,以避免权限问题。没有使用任何过滤器。在结束响应中,我只使用了Kendra的标准响应,比如x-amz-lex:kendra-search-response-question_answer-answer-1。

有什么建议吗?

错误: { "errorMsg": "Invalid Bot Configuration: Amazon Lex could not access your Amazon Kendra index. There is a problem with your configuration. Check the configuration and try your request again." }

profile picture
EXPERTO
preguntada hace 8 meses87 visualizaciones
1 Respuesta
0

【以下的回答经过翻译处理】 我找到了问题的答案。出错的根本原因在于创建Lexbot Intent的角色没有编辑Lex bot的IAM服务的权限。

在授予角色(我的角色作为控制台用户)相应的权限之后,重新创建KendraSearchIntent,并更新了Lex IAM服务角色。不再出错,Lex现在可以访问Kendra了。

profile picture
EXPERTO
respondido hace 8 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas