Unable to rerank in ap-northeast-1 with the AWS Tools plugin Bedrock Retrieve #774

Closed
opened 2026-02-16 10:20:28 -05:00 by yindo · 2 comments
Owner

Originally created by @tkawa on GitHub (Nov 4, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues Dify issues & Dify Official Plugins, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.9.2

Plugin version

0.0.15

Cloud or Self Hosted

Cloud

Steps to reproduce

This is an issue with the AWS Tools plugin Bedrock Retrieve.

When I set the AWS Region to ap-northeast-1 and the rerank model id to amazon.rerank-v1:0 in the Bedrock Retrieve settings, I get the error "Reranking does not support cross-region calls. Please provide a valid model ARN."

Image

(The error message is returned as text, so the block appears to be green and successful. See the error log section for the full message.)

After examining the source code, I believe the cause is that the rerank model region is hard-coded to us-west-2 in the following code:
https://github.com/langgenius/dify-official-plugins/blob/7089117748433ecc0b949b02d6946125f67f0ca1/tools/aws/tools/bedrock_retrieve.py#L83

I have submitted a pull request to fix this to https://github.com/aws-samples/dify-aws-tool/pull/141, so please see it for details on how to fix the issue. However, it remains abandoned.

I may have submitted it in the wrong place, so I'm submitting it again as an issue here.

✔️ Error log

Bedrock Retrieve Output:

{
  "text": "Exception Error retrieving from knowledge base: An error occurred (ValidationException) when calling the Retrieve operation: Reranking does not support cross-region calls. Please provide a valid model ARN., line : 4",
  "files": [],
  "json": [
    {
      "data": []
    }
  ]
}
Originally created by @tkawa on GitHub (Nov 4, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.9.2 ### Plugin version 0.0.15 ### Cloud or Self Hosted Cloud ### Steps to reproduce This is an issue with the AWS Tools plugin Bedrock Retrieve. When I set the AWS Region to `ap-northeast-1` and the rerank model id to `amazon.rerank-v1:0` in the Bedrock Retrieve settings, I get the error **"Reranking does not support cross-region calls. Please provide a valid model ARN."** <img width="151" height="184" alt="Image" src="https://github.com/user-attachments/assets/e07b998b-d222-437c-a16a-b8ec4b1e1fc2" /> (The error message is returned as text, so the block appears to be green and successful. See the error log section for the full message.) After examining the source code, I believe the cause is that the rerank model region is hard-coded to `us-west-2` in the following code: https://github.com/langgenius/dify-official-plugins/blob/7089117748433ecc0b949b02d6946125f67f0ca1/tools/aws/tools/bedrock_retrieve.py#L83 I have submitted a pull request to fix this to https://github.com/aws-samples/dify-aws-tool/pull/141, so please see it for details on how to fix the issue. However, it remains abandoned. I may have submitted it in the wrong place, so I'm submitting it again as an issue here. ### ✔️ Error log Bedrock Retrieve Output: ``` { "text": "Exception Error retrieving from knowledge base: An error occurred (ValidationException) when calling the Retrieve operation: Reranking does not support cross-region calls. Please provide a valid model ARN., line : 4", "files": [], "json": [ { "data": [] } ] } ```
yindo added the bug label 2026-02-16 10:20:28 -05:00
yindo closed this issue 2026-02-16 10:20:28 -05:00
Author
Owner

@tkawa commented on GitHub (Nov 19, 2025):

Thank you for merging this pull request https://github.com/aws-samples/dify-aws-tool/pull/141 (@ybalbert001).
I've looked into it and the same code exists in other places too, so I don't know how these have different functions.

What I want is for this fix to be applied to the AWS Tools that can be installed in the cloud version of Dify.
https://marketplace.dify.ai/plugins/langgenius/aws_tools

The fact that this fix has been accepted in one place means that the issue is close to being solved, so please keep it up.

@tkawa commented on GitHub (Nov 19, 2025): Thank you for merging this pull request https://github.com/aws-samples/dify-aws-tool/pull/141 (@ybalbert001). I've looked into it and the same code exists in other places too, so I don't know how these have different functions. - https://github.com/aws-samples/dify-aws-tool/blob/main/builtin_tools/aws/tools/bedrock_retrieve.py (fixed) - https://github.com/aws-samples/dify-aws-tool/blob/main/plugins/aws_tools/tools/bedrock_retrieve.py (not fixed) - https://github.com/langgenius/dify-official-plugins/blob/main/tools/aws/tools/bedrock_retrieve.py (not fixed) What I want is for this fix to be applied to the AWS Tools that can be installed in the cloud version of Dify. https://marketplace.dify.ai/plugins/langgenius/aws_tools The fact that this fix has been accepted in one place means that the issue is close to being solved, so please keep it up.
Author
Owner

@dosubot[bot] commented on GitHub (Dec 6, 2025):

Hi, @tkawa. I'm Dosu (https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported that reranking in the AWS Tools plugin Bedrock Retrieve fails in the ap-northeast-1 region due to a hard-coded rerank model region set to us-west-2.
  • A fix you submitted was merged for one file in Dify v1.9.2, but the issue persists in other plugin locations, including the cloud-installable AWS Tools plugin.
  • You requested that the fix be applied consistently across all relevant plugin versions to fully resolve the problem.
  • The fix accepted in one place means the overall issue is close to being solved but not yet fully addressed.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of the dify-official-plugins repository by commenting here to keep the discussion open.
  • If I do not hear back within 5 days, I will automatically close this issue.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Dec 6, 2025): Hi, @tkawa. I'm Dosu (https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported that reranking in the AWS Tools plugin Bedrock Retrieve fails in the ap-northeast-1 region due to a hard-coded rerank model region set to us-west-2. - A fix you submitted was merged for one file in Dify v1.9.2, but the issue persists in other plugin locations, including the cloud-installable AWS Tools plugin. - You requested that the fix be applied consistently across all relevant plugin versions to fully resolve the problem. - The fix accepted in one place means the overall issue is close to being solved but not yet fully addressed. **Next Steps:** - Please let me know if this issue is still relevant to the latest version of the dify-official-plugins repository by commenting here to keep the discussion open. - If I do not hear back within 5 days, I will automatically close this issue. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#774