mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #21246] [CLOSED] fix: Fix opensearch-py 3.0+ compatibility in refresh() calls #49038
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/21246
Author: @veeceey
Created: 2/8/2026
Status: ❌ Closed
Base:
dev← Head:fix/issue-20649-opensearch-refresh-resubmit📝 Commits (1)
fe07483Fix opensearch-py 3.0+ compatibility in refresh() calls📊 Changes
1 file changed (+3 additions, -3 deletions)
View changed files
📝
backend/open_webui/retrieval/vector/dbs/opensearch.py(+3 -3)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
Fixed
refresh(index_name)torefresh(index=index_name)in opensearch.py (insert, upsert, and delete methods)Breaking Changes
Additional Information
Problem:
The
IndicesClient.refresh()method signature changed in opensearch-py 3.0.0 to accept only keyword-only arguments. The code was callingrefresh()with a positional argument, causing:This prevented document uploads to knowledge base when using OpenSearch as the vector database backend.
Solution:
Changed all three
refresh()calls inopensearch.pyto use keyword argument syntax:Before:
After:
Changes made in:
insert()method (line 214)upsert()method (line 237)delete()method (line 266)Related:
Screenshots or Videos
Manual Testing Performed:
Test Setup:
Before Fix:
After Fix:
Compatibility Testing:
OpenSearch Verification:
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.