- Newest
- Most votes
- Most comments
The error you're encountering suggests that there's an issue with the input format of your prompt. Specifically, the error message indicates that an extraneous key [promptCache] is present in your request, which is not permitted.
To resolve this issue, you should review your prompt configuration and ensure that you're not inadvertently including a 'promptCache' field in your request. This field is not a standard parameter for prompt invocation in Amazon Bedrock.
Here are some steps you can take to troubleshoot and resolve the issue:
-
Double-check your prompt configuration in the Amazon Bedrock console. Make sure you're not including any unexpected fields like 'promptCache'.
-
Ensure that your prompt is properly formatted according to the model's requirements. For Llama 70B and Claude, the prompt structure might be slightly different.
-
When testing your prompt, use the Prompt Builder in the Amazon Bedrock console. This tool allows you to select a model, set model parameters, write the prompt message, and quickly evaluate the output.
-
If you're using the API to invoke the prompt, review your API call to ensure it doesn't include any extraneous fields.
-
Try simplifying your prompt temporarily to isolate the issue. Start with a basic prompt without variables or complex instructions, then gradually add complexity back in.
-
If the issue persists, you may want to create a new prompt from scratch in the Prompt Management console and transfer your instructions there.
Remember, when using Prompt Management, you typically don't need to include system instructions directly in your API calls. The system instructions should be part of the prompt configuration in the Prompt Management console.
If you continue to experience issues after trying these steps, you may want to contact AWS support for further assistance, as there might be a specific issue with your account or the Prompt Management feature configuration.
Sources
Prompt Management for Amazon Bedrock - AWS
Test a prompt using Prompt management - Amazon Bedrock
Modify a prompt using Prompt management - Amazon Bedrock
Relevant content
- asked a year ago
- asked 7 months ago
- asked 4 months ago
- How do I troubleshoot permission errors that I get when I create a knowledge base in Amazon Bedrock?AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 8 months ago