mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-25 23:00:53 -05:00
Adding already processed files to a knowledge base through the batch add API gave the knowledge base a fresh split of each file's plain text. The chunks lost the page they came from and could run across pages, so citations showed no page and RAG_SOURCE_METADATA_KEYS had nothing to pass to the model. The batch add now copies each file's existing chunks and falls back to the file's text when those chunks are missing. The duplicate content check is unchanged. Fixes #34876