Skip to content

AWS Bedrock - Agent : Agent not calling the knowledge base

0

Hello I have this error message in the trace: The predicted knowledge base doesn't exist. So, couldn't retrieve any information</description></error><error><type>object</type><description>Encountered an error in getting response from this function. Please try again later

I have checked I have all the IAM rights linked to Bedrock What can I do?

Enter image description here

1 Answer
0

If you created the stack using terraform (like me), that's an issue in the provider... Some of them have been fixed. Have a look: https://github.com/hashicorp/terraform-provider-aws/issues?q=bedrock+knowledge+base

Anyway, I had the same issue using the Action Groups and I noticed that if you create an Agent Version from the AWS Console UI it gets associated to the Action Group. While using CLI or terraform it does not. Probably the same happens for knowledge-bases.

You can cross check that: on the AWS Console UI, click on a Agent Version, scroll down the page an check if the knowledge-base is there.

Also, there is CLI command to associate the knowledge-base to an agent version:

  associate-agent-knowledge-base \
     --agent-id <value> \
     --agent-version <value> \
     --description <value> \
     --knowledge-base-id <value>
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.