docling-project / docling-project/docling-serve

Add support for html_split_page format

Open
#367 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
1.8k
Forks
340
Avg merge
6d 11h
Merged PRs (30d)
8

Description

When I use `to_formats: "html_split_page"`, I get response with all fields being null:
```
"document": {
"filename": null,
"md_content": null,
"json_content": null,
"html_content": null,
"text_content": null,
"doctags_content": null
},
```

If I pass `to_formats: "html"`, I get response with the proper value in `document.html_content`.
I've tried to parse the same file with docling CLI, without docling-serve, and it works just fine with `html_split_page` format.

Also, `html_split_page` is not available in the UI, but it's being listed in api docs page.
Image

Contributor guide

Open the contributing guide

Research direction

Reproduce the docling-serve API request with to_formats set to "html_split_page" and compare it with the working "html" response and the standalone Docling CLI. Trace the API format handling and the UI format selector; done means the split-page response is populated and the format is available consistently in the UI and API.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.