[PR #12571] [MERGED] feat: reindex knowledge files #22975

Closed
opened 2026-04-20 04:32:38 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/12571
Author: @hurxxxx
Created: 4/7/2025
Status: Merged
Merged: 4/9/2025
Merged by: @tjbck

Base: devHead: feat/reindex-knowledge-files


📝 Commits (4)

  • 63533c9 Merge pull request #12524 from open-webui/dev
  • 4e545d4 feat: add new admin func - reindex knowledge files
  • 7c82801 fix: ReindexKnowledgeFilesConfirmDialog
  • e7715f3 i18n: add reindex knowledge files dialog

📊 Changes

55 files changed (+236 additions, -5 deletions)

View changed files

📝 backend/open_webui/routers/knowledge.py (+69 -0)
📝 src/lib/apis/knowledge/index.ts (+29 -0)
📝 src/lib/components/admin/Settings/Documents.svelte (+34 -5)
📝 src/lib/i18n/locales/ar-BH/translation.json (+2 -0)
📝 src/lib/i18n/locales/ar/translation.json (+2 -0)
📝 src/lib/i18n/locales/bg-BG/translation.json (+2 -0)
📝 src/lib/i18n/locales/bn-BD/translation.json (+2 -0)
📝 src/lib/i18n/locales/bo-TB/translation.json (+2 -0)
📝 src/lib/i18n/locales/ca-ES/translation.json (+2 -0)
📝 src/lib/i18n/locales/ceb-PH/translation.json (+2 -0)
📝 src/lib/i18n/locales/cs-CZ/translation.json (+2 -0)
📝 src/lib/i18n/locales/da-DK/translation.json (+2 -0)
📝 src/lib/i18n/locales/de-DE/translation.json (+2 -0)
📝 src/lib/i18n/locales/dg-DG/translation.json (+2 -0)
📝 src/lib/i18n/locales/el-GR/translation.json (+2 -0)
📝 src/lib/i18n/locales/en-GB/translation.json (+2 -0)
📝 src/lib/i18n/locales/en-US/translation.json (+2 -0)
📝 src/lib/i18n/locales/es-ES/translation.json (+2 -0)
📝 src/lib/i18n/locales/et-EE/translation.json (+2 -0)
📝 src/lib/i18n/locales/eu-ES/translation.json (+2 -0)

...and 35 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 to validate 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 clearly 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

  • There is an inconvenience of having to reupload all files when the embedding model is changed.
  • Therefore, a feature has been added in the Document settings of the admin panel to reindex all files in the entire Knowledge base.

Screenshots or Videos


🔄 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/12571 **Author:** [@hurxxxx](https://github.com/hurxxxx) **Created:** 4/7/2025 **Status:** ✅ Merged **Merged:** 4/9/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `feat/reindex-knowledge-files` --- ### 📝 Commits (4) - [`63533c9`](https://github.com/open-webui/open-webui/commit/63533c9e3ab41edd7bd4124ef94f6b6dc09aa175) Merge pull request #12524 from open-webui/dev - [`4e545d4`](https://github.com/open-webui/open-webui/commit/4e545d432ba8d5606b519db52b602cd73a8aa2a7) feat: add new admin func - reindex knowledge files - [`7c82801`](https://github.com/open-webui/open-webui/commit/7c828015d34f447f1267b77c245b2a258b63d267) fix: ReindexKnowledgeFilesConfirmDialog - [`e7715f3`](https://github.com/open-webui/open-webui/commit/e7715f37609917800d2c0029c583227f99d42d0a) i18n: add reindex knowledge files dialog ### 📊 Changes **55 files changed** (+236 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/routers/knowledge.py` (+69 -0) 📝 `src/lib/apis/knowledge/index.ts` (+29 -0) 📝 `src/lib/components/admin/Settings/Documents.svelte` (+34 -5) 📝 `src/lib/i18n/locales/ar-BH/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/ar/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/bg-BG/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/bn-BD/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/bo-TB/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/ca-ES/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/ceb-PH/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/cs-CZ/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/da-DK/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/de-DE/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/dg-DG/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/el-GR/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/en-GB/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/en-US/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/es-ES/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/et-EE/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/eu-ES/translation.json` (+2 -0) _...and 35 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? - [x] **Testing:** Have you written and run sufficient tests to validate 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 clearly 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 - There is an inconvenience of having to reupload all files when the embedding model is changed. - Therefore, a feature has been added in the Document settings of the admin panel to reindex all files in the entire Knowledge base. ### Screenshots or Videos - Video capture is linked due to attachment size issues. [https://1drv.ms/v/c/3dbe8525a1b21172/IQR4qX7mvNnQSKdXoRfoWzEqAXLG76icmrU75LJ9ujYmkAo](url) --- <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:32:38 -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#22975