mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Unable to rerank in ap-northeast-1 with the AWS Tools plugin Bedrock Retrieve #774
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tkawa on GitHub (Nov 4, 2025).
Self Checks
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-1and the rerank model id toamazon.rerank-v1:0in the Bedrock Retrieve settings, I get the error "Reranking does not support cross-region calls. Please provide a valid model ARN."(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-2in 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:
@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.
@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:
Next Steps:
Thank you for your understanding and contribution!