1 Answer
- Newest
- Most votes
- Most comments
1
Hi Sohit,
Based on the error message, it seems the agent is unable to retrieve information from the knowledge base that was associated with it.
You can check below things:
- Verify that the knowledge base is deployed correctly and contains the expected data. You can use the GetKnowledgeBase API to check its status and contents.
- Verify that the knowledge base full sync is completed once.
- Confirm that the knowledge base is properly associated with the agent using the GetAgentKnowledgeBase API. Check that the association details like description are correct.
- Make sure the agent has the necessary IAM permissions to access the knowledge base. It needs permissions for actions like bedrock:Retrieve etc.
- Try re-associating the knowledge base with the agent or updating the association details using the AssociateAgentKnowledgeBase API.
- As a test, you can directly call the knowledge base APIs like “Retrieve” instead of going through the agent to narrow down if the issue is with agent-KB connection or the KB itself.
Below link details: [1] Manage agent-knowledge bases associations - Amazon Bedrock - https://docs.aws.amazon.com/bedrock/latest/userguide/agents-kb-manage.html [2] GetAgentKnowledgeBase - Amazon Bedrock - https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentKnowledgeBase.html [3] Deploy a knowledge base - Amazon Bedrock - https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-deploy.html
answered 6 months ago
Relevant content
- Accepted Answerasked 7 months ago
- asked 2 months ago
- asked 12 days ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 3 days ago
- AWS OFFICIALUpdated 5 months ago