Added opensearch serverless feature #9078

Closed
opened 2026-02-21 18:30:21 -05:00 by yindo · 0 comments
Owner

Originally created by @mz-heesun on GitHub (Mar 4, 2025).

Self Checks

  • I have searched for existing issues search for existing issues, 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.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

Currently opensearch serverless feature is not supported.

opensearch is overly expensive.

2. Additional context or comments

Currently opensearch serverless feature is not supported.

Opensearch charges too much.

Add the following libraries to pyproject.toml file.
requests_aws4auth = "1.3.1"

opensearch_vector.py
In file

if self.is_serverless and self.user is None and self.password is None:
credentials = boto3.Session().get_credentials()
auth = AWS4Auth(credentials, service="aoss")
params["http_auth"] = auth

Write the code.

opensearch_config.py

...
IS_OPENSEARCH_SERVERLESS: Optional[str] = Field(
description="Using for OpenSearch Serverless",
default=False,
)
...

Add the content.

You should test the other contents.

I would appreciate it if you could help me add this feature or let me know how I can do it myself.

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @mz-heesun on GitHub (Mar 4, 2025). ### Self Checks - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/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. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. Currently opensearch serverless feature is not supported. opensearch is overly expensive. ### 2. Additional context or comments Currently opensearch serverless feature is not supported. Opensearch charges too much. Add the following libraries to pyproject.toml file. requests_aws4auth = "1.3.1" opensearch_vector.py In file ``` if self.is_serverless and self.user is None and self.password is None: credentials = boto3.Session().get_credentials() auth = AWS4Auth(credentials, service="aoss") params["http_auth"] = auth ``` Write the code. opensearch_config.py ``` ... IS_OPENSEARCH_SERVERLESS: Optional[str] = Field( description="Using for OpenSearch Serverless", default=False, ) ... ``` Add the content. You should test the other contents. I would appreciate it if you could help me add this feature or let me know how I can do it myself. ### 3. Can you help us with this feature? - [x] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 18:30:21 -05:00
yindo closed this issue 2026-02-21 18:30:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#9078