CatchTheTornado / CatchTheTornado/text-extract-api
[feat] `response_format` differentiation
- Dominant language
- Python
- Stars
- 3.2k
- Forks
- 279
- PR merge metrics
- No merged PRs in 30d
Description
Additionally, for **docling**, I think it would be good to add something like a `response_format` parameter. Then:
- **default** – returns text, as it does now,
- **object** – returns the Docling object,
- **meta_data** – returns document metadata (such as the title inferred by the LLM and other details),
- **bbox** – returns bounding boxes (an object containing bounding box data), which will work with **easyOCR**.
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue refers to the existing docling extraction path and easyOCR integration but names no files or tests. Start by tracing how docling currently produces the default text response; done means the response_format options consistently return text, the Docling object, metadata, or bounding-box data as specified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100