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 个月前1134 查看次数
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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容