Adding FAQ URL from Kendra to Lex Response

0

When you upload FAQ to Kendra, there are three values: Question, Answer, and URL. However, the documentation on Lex Responses only shows how to return the Question and the Answer:

from: https://docs.aws.amazon.com/lex/latest/dg/faq-bot-kendra-search.html

I found a FAQ question for you: ((x-amz-lex:kendra-search-response-question_answer-question-1)) and the answer is ((x-amz-lex:kendra-search-response-question_answer-answer-1)).

How do I access the URL associated with question-1 and answer-1?

A similar questions was asked at the link below - but incorrectly answered. https://forums.aws.amazon.com/thread.jspa?threadID=336412

質問済み 2年前732ビュー
1回答
1
承認された回答

Thank you for reaching out! Kendra's QueryResultItem does not return the DocumentURI field if the result type is QUESTION_ANSWER, hence Lex is unable to surface this value.

When the Kendra query results are of the other two types, Kendra does return the DocumentURI, and Lex provides the capability to access the URI of the DOCUMENT type results via the request attribute "x-amz-lex:kendra-search-response-document-link-<N>".

I hope this helps!

AWS
回答済み 2年前
  • Hi, I just want to get an answer regarding Kendra & Lex. We have a Lex which is connected with Kendra, When Lex didn't found any answer it search in Kendra and it gives result, In search result We are getting Source Link and that link is contaning S3 link with a token, Is there any way where we can replace that s3 link with a cloudfront link or a sub domain linked with cloudfront?

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ