Per session knowledge base augmentation with bedrock agents

0

I came across this article below which show users uploading documents that are added to the knowledge base of the bedrock agent. In this case these documents can be used when other users ask questions. Is there a way to create a knowledge base augmentation per session while still using the common knowledge base for all users?

https://aws.amazon.com/blogs/machine-learning/automate-the-insurance-claim-lifecycle-using-agents-and-knowledge-bases-for-amazon-bedrock/

  • In your use case, is the augmentation only for that session, and is it always relevant to the task? Those details help provide more prescriptive answers.

  • @hakanson, for your comment, yes the documents uploaded in the session are relevant to only that session. In future there might be a need for per user document store that lasts beyond the session for that user but for now per session is sufficient. What we will be looking for hierarchy of knowledge base: Common-> User -> Session. Will try out the custom flow suggested below.

profile picture
質問済み 3ヶ月前1124ビュー
1回答
1
承認された回答

You can take advantage of a Knowledge base for Amazon Bedrock in different ways. The RetrieveAndGenerate API queries your knowledge base directly and generates responses. The Retrieve API enables custom orchestration flows, where you retrieve information directly from the knowledge base and use in your own calls into InvokeModel.

As of this answer, you may need to keep these per session documents in a separate data store and your custom orchestration flow retrieves documents from both a common knowledge base and the per session store. (However, Knowledge base for Amazon Bedrock is actively releasing new features based on customer feedback)

profile pictureAWS
回答済み 2ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前

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

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

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

関連するコンテンツ