v1.8.0
datalab-to/markerv1.8.0Jun 27, 2025by VikParuchuri
AI Summary
A major release introducing chunking output for RAG, custom prompts, improved structured extraction, and Azure OpenAI support.
Key Highlights
- Added flat list of blocks with HTML for RAG applications
- Significant improvements to structured extraction beta performance and accuracy
- New LLM sectionheader processor for proper header labeling
- Added promptability via `block_correction_prompt` configuration
- Support for Azure OpenAI service
New Features
- Chunk output format (`--output_format chunks`)
- LLM sectionheader processor (`--use_llm`)
- Custom prompt configuration
- Azure OpenAI service support
- Batch conversion performance improvements
- Option to filter blank white page images
- Option to keep pageheader/pagefooter in output
Full Release Notes
# Marker 1.8.0 - Marker will now output a flat list of blocks with associated html, which is useful for RAG - Structured extraction beta is significantly improved, with better performance/accuracy - New LLM sectionheader processor will correctly label section header levels - You can pass a prompt to marker in LLM mode to adjust the output - Marker batch conversion script has somewhat better performance, closer to our inference container - email us at hi@datalab.to if you want to get setup with our inference container (used on prem at top AI research orgs) - Add an option to filter out blank white page images from output - Enable keeping pageheader/pagefooter. ## Chunking/RAG improvements - Add chunk output format which is a flat list of chunks with full html in each - Add an llm sectionheader processor that will redo all the header levels against each other properly Use the sectionheaderprocessor by setting `--use_llm`, and the chunk output by setting `--output_format chunks`. ## Structured extraction - Fix structured extraction, so it works much better than before (requires llm) - Improve structured extraction test app You can try with with the streamlit app by running `python extraction_app.py`. ## Promptability/customization! - Add promptability via `block_correction_prompt`, which can be used to create custom behavior (requires llm) Try it by setting the `block_correction_prompt` config key to a specific prompt. ## Misc - Get the marker script to perform a bit closer to our inference container by default (inference container gets 10-25 pages/s on H100). Will auto-configure worker count to available VRAM. - Fix where marker would output blank pages as images - Enable keeping pageheader/pagefooter in the output - Adjust llm services to enable text-only input - Add html field to almost every block type Test pageheader/pagefooter by setting `keep_pagefooter_in_output` and `keep_pageheader_in_output`. ## What's Changed * Adding image format arg to OpenAI interface by @rgeorgi in https://github.com/datalab-to/marker/pull/752 * fix: don't remove leading newlines when paginate=True for markdown by @zanussbaum in https://github.com/datalab-to/marker/pull/769 * Fix LLM query retry logic and unnecessary sleeping by @runarmod in https://github.com/datalab-to/marker/pull/772 * Update issue templates by @tarun-menta in https://github.com/datalab-to/marker/pull/767 * WIP: Add Blank Page Processor by @tarun-menta in https://github.com/datalab-to/marker/pull/750 * Vik/0625fixes by @VikParuchuri in https://github.com/datalab-to/marker/pull/768 * Marker v1.8 by @VikParuchuri in https://github.com/datalab-to/marker/pull/773 * Add Azure OpenAI service support to marker package by @MauritsBrinkman in https://github.com/datalab-to/marker/pull/675 * Add azure openai by @VikParuchuri in https://github.com/datalab-to/marker/pull/774 ## New Contributors * @rgeorgi made their first contribution in https://github.com/datalab-to/marker/pull/752 * @zanussbaum made their first contribution in https://github.com/datalab-to/marker/pull/769 * @runarmod made their first contribution in https://github.com/datalab-to/marker/pull/772 * @MauritsBrinkman made their first contribution in https://github.com/datalab-to/marker/pull/675 **Full Changelog**: https://github.com/datalab-to/marker/compare/v1.7.5...v1.8.0