Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: pass file.meta through to vector DB chunks on file upload - #29499

Merged
tjbck merged 1 commit into
open-webui:devfrom
Classic298:fix/file-meta-into-vectordb
Sep 3, 2026
Merged

fix: pass file.meta through to vector DB chunks on file upload#29499
tjbck merged 1 commit into
open-webui:devfrom
Classic298:fix/file-meta-into-vectordb

Conversation

@Classic298

Copy link
Copy Markdown
Member

Custom metadata attached to a file upload (e.g. via the API's metadata field) was stored on the file row but silently dropped when the file was chunked and embedded for RAG, so it never reached the LLM through retrieved sources.

process_file() builds chunk metadata in several branches; three of them already merge the file's meta dict in, but the branch used for a fresh upload processed through a document loader did not. Bring it in line with the others so custom metadata flows through consistently regardless of upload path.

Reported in #29486.

Contributor License Agreement

Custom metadata attached to a file upload (e.g. via the API's
metadata field) was stored on the file row but silently dropped
when the file was chunked and embedded for RAG, so it never reached
the LLM through retrieved sources.

process_file() builds chunk metadata in several branches; three of
them already merge the file's meta dict in, but the branch used for
a fresh upload processed through a document loader did not. Bring
it in line with the others so custom metadata flows through
consistently regardless of upload path.

Reported in open-webui#29486.
@tjbck
tjbck merged commit 8ba8786 into open-webui:dev Sep 3, 2026
2 checks passed
@Classic298
Classic298 deleted the fix/file-meta-into-vectordb branch September 3, 2026 19:01
pujitha24 pushed a commit to pujitha24/open-webui that referenced this pull request Sep 5, 2026
…webui#29499)

Custom metadata attached to a file upload (e.g. via the API's
metadata field) was stored on the file row but silently dropped
when the file was chunked and embedded for RAG, so it never reached
the LLM through retrieved sources.

process_file() builds chunk metadata in several branches; three of
them already merge the file's meta dict in, but the branch used for
a fresh upload processed through a document loader did not. Bring
it in line with the others so custom metadata flows through
consistently regardless of upload path.

Reported in open-webui#29486.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants