SoMarkAI/OXR ? reverse-engineered prompt
Reverse engineered prompt
Build me a document parsing app that can take PDFs and document images and turn them into clean Markdown or JSON with layout coordinates included.
I want it to handle things like tables, formulas, code blocks, headers, footers, figures, stamps, and even chemical equations and structures. It should work well on messy real world documents too, like exam papers, newspapers, handwriting, and vertical text. Please make the layout detection part easy to swap out so I can plug in my own model later, while keeping the text recognition and reading order working.
If it makes sense, include a simple API or demo service so I can upload a file and get the parsed result back. Add sensible defaults, a config file, and basic docs so it is easy to run locally or with Docker. Look up current docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit