[PR #11180] [CLOSED] fix: Elasticsearch as a vector store bugs fixes. #22678

Closed
opened 2026-04-20 04:18:48 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/11180
Author: @tupe2009
Created: 3/4/2025
Status: Closed

Base: mainHead: kleqon.feat-add-elasticsearch-support-2


📝 Commits (10+)

  • 4a2a12f feat: scaffolding for logit_bias
  • 8aa6415 include logit_bias in form_data
  • b061775 feat: add perplexity integration to web search
  • d7b18b6 chore: use logging.getLevelNamesMapping()
  • 5e873bc feat: add AWS workload identity support
  • 54e3ca8 refac: rm confusing defaults
  • 6f7161a chore: format
  • 1d27402 Merge pull request #10910 from saraangelmurphy/awsworkloadidentity
  • 1b56a8f Merge pull request #10864 from kurtdami/perplexity_integration
  • 43077b8 i18n: Update de-DE translation

📊 Changes

125 files changed (+3249 additions, -1492 deletions)

View changed files

📝 .github/workflows/docker-build.yaml (+3 -3)
📝 backend/open_webui/config.py (+24 -5)
📝 backend/open_webui/env.py (+13 -12)
📝 backend/open_webui/main.py (+19 -7)
📝 backend/open_webui/retrieval/utils.py (+7 -0)
📝 backend/open_webui/retrieval/vector/connector.py (+4 -0)
backend/open_webui/retrieval/vector/dbs/elasticsearch.py (+274 -0)
📝 backend/open_webui/retrieval/vector/dbs/milvus.py (+2 -2)
📝 backend/open_webui/retrieval/vector/dbs/opensearch.py (+28 -21)
backend/open_webui/retrieval/web/perplexity.py (+87 -0)
📝 backend/open_webui/routers/auths.py (+12 -6)
📝 backend/open_webui/routers/images.py (+7 -1)
📝 backend/open_webui/routers/ollama.py (+3 -3)
📝 backend/open_webui/routers/openai.py (+4 -6)
📝 backend/open_webui/routers/retrieval.py (+24 -4)
📝 backend/open_webui/socket/main.py (+2 -1)
backend/open_webui/static/apple-touch-icon.png (+0 -0)
backend/open_webui/static/favicon-96x96.png (+0 -0)
backend/open_webui/static/favicon-dark.png (+0 -0)
backend/open_webui/static/favicon.ico (+0 -0)

...and 80 more files

📄 Description

Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.

Before submitting, make sure you've checked the following:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests for validating the changes?
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Prefix: To cleary categorize this pull request, prefix the pull request title, using one of the following:
    • BREAKING CHANGE: Significant changes that may affect compatibility
    • build: Changes that affect the build system or external dependencies
    • ci: Changes to our continuous integration processes or workflows
    • chore: Refactor, cleanup, or other non-functional code changes
    • docs: Documentation update or addition
    • feat: Introduces a new feature or enhancement to the codebase
    • fix: Bug fix or error correction
    • i18n: Internationalization or localization changes
    • perf: Performance improvement
    • refactor: Code restructuring for better maintainability, readability, or scalability
    • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)
    • test: Adding missing tests or correcting existing tests
    • WIP: Work in progress, a temporary label for incomplete or ongoing work

Changelog Entry

Description

basic Elasticsearch support missed correct index and collections handling in terms of delete, upsert and delete collection. this PR fixes that.
elasticsearch before that PR is basically unusable in the long run since updating, deleting or upserting documents or entire collection is not working.

Fixed

Fixed Elasticsearch retrieve module to support collection deletion and document upsert correctly.



🔄 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/11180 **Author:** [@tupe2009](https://github.com/tupe2009) **Created:** 3/4/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `kleqon.feat-add-elasticsearch-support-2` --- ### 📝 Commits (10+) - [`4a2a12f`](https://github.com/open-webui/open-webui/commit/4a2a12fd21c15f1671f82315b7897a0f9af4f6f3) feat: scaffolding for logit_bias - [`8aa6415`](https://github.com/open-webui/open-webui/commit/8aa6415500bd2b7213aa1b655cbe386fb5457810) include logit_bias in form_data - [`b061775`](https://github.com/open-webui/open-webui/commit/b0617759322e4d5c03b740a20a07a868c3e3e331) feat: add perplexity integration to web search - [`d7b18b6`](https://github.com/open-webui/open-webui/commit/d7b18b662b3c332c794f079d168657931db6e38e) chore: use logging.getLevelNamesMapping() - [`5e873bc`](https://github.com/open-webui/open-webui/commit/5e873bc643c92394c567a9ccffdebc0035852457) feat: add AWS workload identity support - [`54e3ca8`](https://github.com/open-webui/open-webui/commit/54e3ca8e6cb23060aa3cc0539dc795ba947a87a8) refac: rm confusing defaults - [`6f7161a`](https://github.com/open-webui/open-webui/commit/6f7161acf8dd3d265eff9cf3281bbefd5a40b928) chore: format - [`1d27402`](https://github.com/open-webui/open-webui/commit/1d27402dd027b334c5a8a0a4ee3118fb28c1964d) Merge pull request #10910 from saraangelmurphy/awsworkloadidentity - [`1b56a8f`](https://github.com/open-webui/open-webui/commit/1b56a8f3cbee8311604266ad8221a6909ae89685) Merge pull request #10864 from kurtdami/perplexity_integration - [`43077b8`](https://github.com/open-webui/open-webui/commit/43077b82b74a5b06352ebdc532bdfb3c06550749) i18n: Update de-DE translation ### 📊 Changes **125 files changed** (+3249 additions, -1492 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/docker-build.yaml` (+3 -3) 📝 `backend/open_webui/config.py` (+24 -5) 📝 `backend/open_webui/env.py` (+13 -12) 📝 `backend/open_webui/main.py` (+19 -7) 📝 `backend/open_webui/retrieval/utils.py` (+7 -0) 📝 `backend/open_webui/retrieval/vector/connector.py` (+4 -0) ➕ `backend/open_webui/retrieval/vector/dbs/elasticsearch.py` (+274 -0) 📝 `backend/open_webui/retrieval/vector/dbs/milvus.py` (+2 -2) 📝 `backend/open_webui/retrieval/vector/dbs/opensearch.py` (+28 -21) ➕ `backend/open_webui/retrieval/web/perplexity.py` (+87 -0) 📝 `backend/open_webui/routers/auths.py` (+12 -6) 📝 `backend/open_webui/routers/images.py` (+7 -1) 📝 `backend/open_webui/routers/ollama.py` (+3 -3) 📝 `backend/open_webui/routers/openai.py` (+4 -6) 📝 `backend/open_webui/routers/retrieval.py` (+24 -4) 📝 `backend/open_webui/socket/main.py` (+2 -1) ➕ `backend/open_webui/static/apple-touch-icon.png` (+0 -0) ➕ `backend/open_webui/static/favicon-96x96.png` (+0 -0) ➕ `backend/open_webui/static/favicon-dark.png` (+0 -0) ➕ `backend/open_webui/static/favicon.ico` (+0 -0) _...and 80 more files_ </details> ### 📄 Description # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request. **Before submitting, make sure you've checked the following:** - [x] **Target branch:** Please verify that the pull request targets the `dev` branch. - [x] **Description:** Provide a concise description of the changes made in this pull request. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [ ] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [ ] **Testing:** Have you written and run sufficient tests for validating the changes? - [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [x] **Prefix:** To cleary categorize this pull request, prefix the pull request title, using one of the following: - **BREAKING CHANGE**: Significant changes that may affect compatibility - **build**: Changes that affect the build system or external dependencies - **ci**: Changes to our continuous integration processes or workflows - **chore**: Refactor, cleanup, or other non-functional code changes - **docs**: Documentation update or addition - **feat**: Introduces a new feature or enhancement to the codebase - **fix**: Bug fix or error correction - **i18n**: Internationalization or localization changes - **perf**: Performance improvement - **refactor**: Code restructuring for better maintainability, readability, or scalability - **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.) - **test**: Adding missing tests or correcting existing tests - **WIP**: Work in progress, a temporary label for incomplete or ongoing work # Changelog Entry ### Description basic Elasticsearch support missed correct index and collections handling in terms of delete, upsert and delete collection. this PR fixes that. elasticsearch before that PR is basically unusable in the long run since updating, deleting or upserting documents or entire collection is not working. ### Fixed Fixed Elasticsearch retrieve module to support collection deletion and document upsert correctly. --- --- <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 04:18:48 -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#22678