[PR #20748] [CLOSED] fix: Use keyword argument for IndicesClient.refresh() opensearch-py >= 3.0.0 #25761

Closed
opened 2026-04-20 06:06:53 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/20748
Author: @YuriNachos
Created: 1/17/2026
Status: Closed

Base: devHead: fix-20649-opensearch-refresh


📝 Commits (1)

  • a55f7af fix: Use keyword argument for IndicesClient.refresh() opensearch-py >= 3.0.0

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 backend/open_webui/retrieval/vector/dbs/opensearch.py (+3 -3)

📄 Description

Description

  • Fixes #20649 - TypeError when using OpenSearch with opensearch-py >= 3.0.0

Added

  • N/A

Changed

  • Changed IndicesClient.refresh() calls to use keyword argument index= instead of positional argument

Deprecated

  • N/A

Removed

  • N/A

Fixed

  • OpenSearch integration: Fixed TypeError when uploading documents to knowledge base with OpenSearch backend
  • In opensearch-py >= 3.0.0, IndicesClient.refresh() method signature changed to only accept keyword-only arguments
  • Changed: self.client.indices.refresh(self._get_index_name(collection_name))
  • To: self.client.indices.refresh(index=self._get_index_name(collection_name))

Security

  • N/A

Breaking Changes

  • N/A

Additional Information

Contributor License Agreement

By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/20748 **Author:** [@YuriNachos](https://github.com/YuriNachos) **Created:** 1/17/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix-20649-opensearch-refresh` --- ### 📝 Commits (1) - [`a55f7af`](https://github.com/open-webui/open-webui/commit/a55f7affb94560f57166f863bd974e805bc93f16) fix: Use keyword argument for IndicesClient.refresh() opensearch-py >= 3.0.0 ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/retrieval/vector/dbs/opensearch.py` (+3 -3) </details> ### 📄 Description ### Description - Fixes #20649 - TypeError when using OpenSearch with opensearch-py >= 3.0.0 ### Added - N/A ### Changed - Changed `IndicesClient.refresh()` calls to use keyword argument `index=` instead of positional argument ### Deprecated - N/A ### Removed - N/A ### Fixed - **OpenSearch integration**: Fixed TypeError when uploading documents to knowledge base with OpenSearch backend - In opensearch-py >= 3.0.0, `IndicesClient.refresh()` method signature changed to only accept keyword-only arguments - Changed: `self.client.indices.refresh(self._get_index_name(collection_name))` - To: `self.client.indices.refresh(index=self._get_index_name(collection_name))` ### Security - N/A ### Breaking Changes - N/A --- ### Additional Information - Issue: #20649 - Related to opensearch-py library version >= 3.0.0 breaking change - Fixes file upload to knowledge base when using OpenSearch as vector database backend ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 06:06:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#25761