Retrieve results outside the knowledgebase if answer cannot be found in the knowledgebase

0

Hi, Is there a way to get results from the web for the prompt if the answer is not available in the knowledgebase using Retrieve or RetrieveAndGenerate.

Thanks, Guru

Guru
質問済み 1ヶ月前79ビュー
2回答
0
承認された回答

https://docs.aws.amazon.com/bedrock/latest/userguide/agents-how.html with agents, you can design multi step orchestration. You can query your kb as first step, if no result found you can do alternative search with either of the following. you can do Kendra web crawler or write a lambda function to do web search via API or web scraping to get relevant information. https://docs.aws.amazon.com/kendra/latest/dg/data-source-web-crawler.html

profile pictureAWS
エキスパート
SriniV
回答済み 1ヶ月前
0

Hello,

If you are talking about Amazon Q which is integrated into AWS then the answer is no. However, you can build your custom Q models.

https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/what-is.html

profile picture
Julian
回答済み 1ヶ月前
  • Sorry, I should have been clear. I have been using the bedrock agent runtime api to query the results from the knowledgebase. I have the pdf documents loaded in the knowledgebase. But the answer is not available in the knowledgebase. Instead I would like to get the answer from the web if the answer is not available in the knowledgebase.

    { "retrievalQuery": { "text": "what are causes of blurred vision?" }, "retrievalConfiguration": { "vectorSearchConfiguration": { "numberOfResults": 1

        }
    }
    

    }

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

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

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

関連するコンテンツ