mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[PR #20811] fix: Docling page number extraction for citations #80666
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/20811
Author: @jannikstdl
Created: 1/20/2026
Status: 🔄 Open
Base:
dev← Head:fix/docling-page-extraction📝 Commits (1)
ecb41aafix: docling page extraction📊 Changes
1 file changed (+34 additions, -4 deletions)
View changed files
📝
backend/open_webui/retrieval/loaders/main.py(+34 -4)📄 Description
Summary
md_page_break_placeholderparameter to split markdown content by page while preserving formattingProblem
Page numbers from Docling-processed PDFs were not showing in CitationModal because the markdown output had no page boundary information.
Solution
Request Docling to insert page break markers (
<!-- DOCLING_PAGE_BREAK -->) between pages in the markdown output, then split on those markers to create one document per page with thepagemetadata field.This preserves:
Test plan
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.