mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #3021] [CLOSED] fix: Fixed UI to reflect the actual DOCS_DIR path used by the backend #36793
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/3021
Author: @CristianVladescu
Created: 6/11/2024
Status: ❌ Closed
Base:
dev← Head:fix-docs-dir-in-ui📝 Commits (1)
ca852d2fix: Fixed UI to reflect the actual DOCS_DIR path used by the backend📊 Changes
3 files changed (+99 additions, -5 deletions)
View changed files
📝
backend/apps/rag/main.py(+50 -2)📝
backend/config.py(+6 -1)📝
src/lib/components/admin/Settings/Documents.svelte(+43 -2)📄 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:
devbranch.Changelog Entry
Description
Under admin/settings/documents section, the DOCS_DIR is statically shown as
/data/docswhen in fact the dafault value is/app/backend/data/docs, misleading the user to the wrong path he has to mount. Also, if the DOCS_DIR is provided in the ENV vars, again, the value won't be reflected in UIAdded
DOCS_FILE_INCLUDE_FILTER_LISTandDOCS_FILE_EXCLUDE_FILTER_LISTto further enhance the Docs scanning functionality, also configurable from the admin documents settings UIChanged
get_rag_config()now returns the value of DOCS_DIR so it can be shown in the admin documents settings UI dynamicallyFixed
Screenshots or Videos
Resolves #2292, resolves #651
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.