Skip to content

Invalid input or configuration provided. Check the input and Knowledge Base configuration and try your request again.

0

I managed to create my knowledge base but I cant seem to test it at all. I always keep getting the same error even when I have all the permissions.

I dont think the issue is with inference profiles because the model I selected already had it available, Confirmation of Inference

Testing the KB

I am not using my root user for this, I created an IAM user who has access and also has all bedrock permissions

2 Answers
0

Based on the error message you're receiving when testing your knowledge base, there could be several potential issues:

  1. IAM Permissions: Even though you've created the knowledge base successfully, the role you're using might not have all the necessary permissions to perform the test operation. Make sure your IAM role has the appropriate permissions for both creating and querying the knowledge base.

  2. Root User Restrictions: If you're using the root user account to test the knowledge base, this could be causing the issue. AWS Bedrock doesn't support knowledge base operations with the root user. You should sign in with an IAM user or assume an IAM role with the appropriate permissions.

  3. Model Access: Verify that you have properly enabled access to the specific model you're trying to use with your knowledge base. Just having the inference profile available doesn't necessarily mean you have been granted access to use the model.

  4. Regional Compatibility: Ensure that your knowledge base and the model you're using are in the same AWS region. Cross-region operations might not be supported unless you're specifically using a cross-region inference profile.

  5. Input Format: The error could indicate an issue with the format of your test query. Try simplifying your query to see if that resolves the issue.

  6. Service Role Configuration: Check that the service role for your knowledge base has the correct trust relationship with the Bedrock service and includes the necessary conditions for your account ID and region.

To troubleshoot, I recommend:

answered 7 months ago
0

Hello.

Please make sure your data sources are properly synchronized as explained in the blog below.
https://shawnesquivel.com/aws-bedrock-knowledge-base-validationexception-bug-fix/

EXPERT
answered 7 months 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.