Download index/prompts.json from Hashir621/parsebench2-viewer: direct link, hf CLI and curl.
- Browser
- Download file 60.4 kB
-
https://huggingface.co/datasets/Hashir621/parsebench2-viewer/resolve/main/index/prompts.json
- Command line
-
hf download hf://datasets/Hashir621/parsebench2-viewer/index/prompts.json
-
curl -L -o prompts.json https://huggingface.co/datasets/Hashir621/parsebench2-viewer/resolve/main/index/prompts.json
60.4 kB
| { | |
| "source": { | |
| "repo": "https://github.com/run-llama/ParseBench", | |
| "commit": "1908f9ae053ee902dc604430aba980468b42bb7c" | |
| }, | |
| "note": "Prompts as sent by ParseBench at the pinned commit. {width}/{height} are filled in per page.", | |
| "pipelines": { | |
| "anthropic_opus_5_5_parse_with_layout": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[x1, y1, x2, y2]\" — bounding box in absolute pixel coordinates of the uploaded image where x is horizontal and y is vertical. The origin (0, 0) is the top-left corner; x increases rightward and y increases downward. x1,y1 is the top-left corner and x2,y2 is the bottom-right corner.\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.\n\nThe uploaded image is exactly {width} pixels wide by {height} pixels high.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/anthropic.py#L87-L87" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[x1,y1,x2,y2]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L64-L72" | |
| } | |
| ], | |
| "note": "Sent with the page rendered as an image (parse_with_layout). Pixel-coordinate variant: the system prompt ends with the image's size, filled in per page." | |
| }, | |
| "anthropic_haiku_5_5_parse_with_layout": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[x1, y1, x2, y2]\" — bounding box in absolute pixel coordinates of the uploaded image where x is horizontal and y is vertical. The origin (0, 0) is the top-left corner; x increases rightward and y increases downward. x1,y1 is the top-left corner and x2,y2 is the bottom-right corner.\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.\n\nThe uploaded image is exactly {width} pixels wide by {height} pixels high.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/anthropic.py#L87-L87" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[x1,y1,x2,y2]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L64-L72" | |
| } | |
| ], | |
| "note": "Sent with the page rendered as an image (parse_with_layout). Pixel-coordinate variant: the system prompt ends with the image's size, filled in per page." | |
| }, | |
| "anthropic_sonnet_5_5_parse_with_layout_file": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[x1, y1, x2, y2]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). x1,y1 is the top-left corner and x2,y2 is the bottom-right corner.\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L28-L62" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[x1,y1,x2,y2]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L64-L72" | |
| } | |
| ], | |
| "note": "Sent with the page as a single-page PDF file (parse_with_layout_file)." | |
| }, | |
| "openai_gpt_5_6_terra_reasoning_low_parse_with_layout": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[x1, y1, x2, y2]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). x1,y1 is the top-left corner and x2,y2 is the bottom-right corner.\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L28-L62" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[x1,y1,x2,y2]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L64-L72" | |
| } | |
| ], | |
| "note": "Sent with the page rendered as an image (parse_with_layout)." | |
| }, | |
| "openai_gpt_5_6_luna_reasoning_low_parse_with_layout": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[x1, y1, x2, y2]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). x1,y1 is the top-left corner and x2,y2 is the bottom-right corner.\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L28-L62" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[x1,y1,x2,y2]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L64-L72" | |
| } | |
| ], | |
| "note": "Sent with the page rendered as an image (parse_with_layout)." | |
| }, | |
| "openai_gpt_6_luna_reasoning_low_parse_with_layout": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[x1, y1, x2, y2]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). x1,y1 is the top-left corner and x2,y2 is the bottom-right corner.\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L28-L62" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[x1,y1,x2,y2]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L64-L72" | |
| } | |
| ], | |
| "note": "Sent with the page rendered as an image (parse_with_layout)." | |
| }, | |
| "openai_gpt_6_1_terra_reasoning_low_parse_with_layout_file": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[x1, y1, x2, y2]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). x1,y1 is the top-left corner and x2,y2 is the bottom-right corner.\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L28-L62" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[x1,y1,x2,y2]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L64-L72" | |
| } | |
| ], | |
| "note": "Sent with the page as a single-page PDF file (parse_with_layout_file)." | |
| }, | |
| "openai_gpt_6_2_sol_reasoning_low_parse_with_layout_file": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[x1, y1, x2, y2]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). x1,y1 is the top-left corner and x2,y2 is the bottom-right corner.\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L28-L62" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[x1,y1,x2,y2]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L64-L72" | |
| } | |
| ], | |
| "note": "Sent with the page as a single-page PDF file (parse_with_layout_file)." | |
| }, | |
| "openai_gpt_6_2_sol_reasoning_med_parse_with_layout_file": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[x1, y1, x2, y2]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). x1,y1 is the top-left corner and x2,y2 is the bottom-right corner.\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L28-L62" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[x1,y1,x2,y2]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L64-L72" | |
| } | |
| ], | |
| "note": "Sent with the page as a single-page PDF file (parse_with_layout_file)." | |
| }, | |
| "muse_ember_1_0_reasoning_low_parse_with_layout_file": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[x1, y1, x2, y2]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). x1,y1 is the top-left corner and x2,y2 is the bottom-right corner.\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L28-L62" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[x1,y1,x2,y2]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L64-L72" | |
| } | |
| ], | |
| "note": "Sent with the page as a single-page PDF file (parse_with_layout_file)." | |
| }, | |
| "gemini_4_argon_thinking_low_parse_with_layout_file": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[y_min, x_min, y_max, x_max]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). The order is [y_min, x_min, y_max, x_max].\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L80-L89" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[y_min,x_min,y_max,x_max]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L91-L94" | |
| } | |
| ], | |
| "note": "Sent with the page as a single-page PDF file (parse_with_layout_file). Gemini variant of the shared prompt (boxes as [y_min, x_min, y_max, x_max])." | |
| }, | |
| "gemini_4_neon_thinking_low_parse_with_layout_file": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[y_min, x_min, y_max, x_max]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). The order is [y_min, x_min, y_max, x_max].\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L80-L89" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[y_min,x_min,y_max,x_max]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L91-L94" | |
| } | |
| ], | |
| "note": "Sent with the page as a single-page PDF file (parse_with_layout_file). Gemini variant of the shared prompt (boxes as [y_min, x_min, y_max, x_max])." | |
| }, | |
| "google_gemini_3_flash_thinking_minimal_parse_with_layout_file": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[y_min, x_min, y_max, x_max]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). The order is [y_min, x_min, y_max, x_max].\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L80-L89" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[y_min,x_min,y_max,x_max]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L91-L94" | |
| } | |
| ], | |
| "note": "Sent with the page as a single-page PDF file (parse_with_layout_file). Gemini variant of the shared prompt (boxes as [y_min, x_min, y_max, x_max])." | |
| }, | |
| "google_gemini_3_7_flash_thinking_low_parse_with_layout_file": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[y_min, x_min, y_max, x_max]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). The order is [y_min, x_min, y_max, x_max].\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L80-L89" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[y_min,x_min,y_max,x_max]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L91-L94" | |
| } | |
| ], | |
| "note": "Sent with the page as a single-page PDF file (parse_with_layout_file). Gemini variant of the shared prompt (boxes as [y_min, x_min, y_max, x_max])." | |
| }, | |
| "google_gemini_3_8_flash_thinking_low_parse_with_layout_file": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[y_min, x_min, y_max, x_max]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). The order is [y_min, x_min, y_max, x_max].\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L80-L89" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[y_min,x_min,y_max,x_max]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L91-L94" | |
| } | |
| ], | |
| "note": "Sent with the page as a single-page PDF file (parse_with_layout_file). Gemini variant of the shared prompt (boxes as [y_min, x_min, y_max, x_max])." | |
| }, | |
| "google_gemini_3_5_flash_parse_with_layout_file": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[y_min, x_min, y_max, x_max]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). The order is [y_min, x_min, y_max, x_max].\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L80-L89" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[y_min,x_min,y_max,x_max]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L91-L94" | |
| } | |
| ], | |
| "note": "Sent with the page as a single-page PDF file (parse_with_layout_file). Gemini variant of the shared prompt (boxes as [y_min, x_min, y_max, x_max])." | |
| }, | |
| "google_gemini_3_6_flash_parse_with_layout_file": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[y_min, x_min, y_max, x_max]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). The order is [y_min, x_min, y_max, x_max].\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L80-L89" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[y_min,x_min,y_max,x_max]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L91-L94" | |
| } | |
| ], | |
| "note": "Sent with the page as a single-page PDF file (parse_with_layout_file). Gemini variant of the shared prompt (boxes as [y_min, x_min, y_max, x_max])." | |
| }, | |
| "google_gemini_3_1_flash_lite_parse_with_layout_file": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[y_min, x_min, y_max, x_max]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). The order is [y_min, x_min, y_max, x_max].\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L80-L89" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[y_min,x_min,y_max,x_max]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L91-L94" | |
| } | |
| ], | |
| "note": "Sent with the page as a single-page PDF file (parse_with_layout_file). Gemini variant of the shared prompt (boxes as [y_min, x_min, y_max, x_max])." | |
| }, | |
| "google_gemini_3_5_flash_lite_parse_with_layout_file": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[y_min, x_min, y_max, x_max]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). The order is [y_min, x_min, y_max, x_max].\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L80-L89" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[y_min,x_min,y_max,x_max]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L91-L94" | |
| } | |
| ], | |
| "note": "Sent with the page as a single-page PDF file (parse_with_layout_file). Gemini variant of the shared prompt (boxes as [y_min, x_min, y_max, x_max])." | |
| }, | |
| "gemma4_e4b_vllm_with_layout": { | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "text": "You are a document parser. Your task is to convert document images to clean, well-structured markdown.\n\nGuidelines:\n- Preserve the document structure (headings, paragraphs, lists, tables)\n- Convert tables to HTML format (<table>, <tr>, <th>, <td>)\n- For existing tables in the document: use colspan and rowspan attributes to preserve merged cells and hierarchical headers\n- For charts/graphs being converted to tables: use flat combined column headers (e.g., \"Primary 2015\" not separate rows) so each data cell's row contains all its labels\n- Describe images/figures briefly in square brackets like [Figure: description]\n- Preserve any code blocks with appropriate syntax highlighting\n- Maintain reading order (left-to-right, top-to-bottom for Western documents)\n- Do not add commentary or explanations - only output the parsed content\n\nAdditionally, wrap each layout element in a <div> tag with:\n- data-bbox=\"[x1, y1, x2, y2]\" — bounding box in normalized 0-1000 coordinates where x is horizontal (left edge = 0, right edge = 1000) and y is vertical (top = 0, bottom = 1000). x1,y1 is the top-left corner and x2,y2 is the bottom-right corner.\n- data-label=\"<category>\" — one of: Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title\n\nPlace elements in reading order. Every piece of content must be inside exactly one <div> wrapper.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L28-L62" | |
| }, | |
| { | |
| "role": "user", | |
| "text": "Parse this document page and output its content as clean markdown, with each layout element wrapped in a <div data-bbox=\"[x1,y1,x2,y2]\" data-label=\"Category\"> tag. Use HTML tables for any tabular data. For charts/graphs, use flat combined column headers. Output ONLY the parsed content with div wrappers, no explanations.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/_layout_utils.py#L64-L72" | |
| } | |
| ], | |
| "note": "Sent with the page rendered as an image (parse_with_layout)." | |
| }, | |
| "qwen3_8_27b_parse_with_layout": { | |
| "messages": [ | |
| { | |
| "role": "user", | |
| "text": "Please output the layout information from the PDF image, including each layout element's bbox, its category, and the corresponding text content within the bbox.\n\n1. Bbox format: [x1, y1, x2, y2] using normalized 0-1000 coordinates.\n\n2. Layout Categories: The possible categories are ['Caption', 'Footnote', 'Formula', 'List-item', 'Page-footer', 'Page-header', 'Picture', 'Section-header', 'Table', 'Text', 'Title'].\n\n3. Text Extraction & Formatting Rules:\n - Picture: If the picture is a chart or graph, extract all data points and format as an HTML table with flat combined column headers (e.g., 'Revenue 2023' not nested header rows). Include axis labels as column/row headers. For non-chart pictures, the text field should be omitted.\n - Formula: Format its text as LaTeX.\n - Table: Format its text as HTML.\n - All Others (Text, Title, etc.): Format their text as Markdown.\n\n4. Constraints:\n - The output text must be the original text from the image, with no translation.\n - All layout elements must be sorted according to human reading order.\n\n5. Final Output: Return ONLY a JSON array. Each element MUST be:\n{\"bbox\": [x1, y1, x2, y2], \"category\": \"<category>\", \"text\": \"<content>\"}\nNo markdown fences, no prose outside the JSON.\n", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/qwen.py#L69-L98" | |
| } | |
| ], | |
| "note": "Qwen layout prompt (JSON output), thinking off." | |
| }, | |
| "qwen3_8_27b_thinking_parse_with_layout": { | |
| "messages": [ | |
| { | |
| "role": "user", | |
| "text": "Please output the layout information from the PDF image, including each layout element's bbox, its category, and the corresponding text content within the bbox.\n\n1. Bbox format: [x1, y1, x2, y2] using normalized 0-1000 coordinates.\n\n2. Layout Categories: The possible categories are ['Caption', 'Footnote', 'Formula', 'List-item', 'Page-footer', 'Page-header', 'Picture', 'Section-header', 'Table', 'Text', 'Title'].\n\n3. Text Extraction & Formatting Rules:\n - Picture: If the picture is a chart or graph, extract all data points and format as an HTML table with flat combined column headers (e.g., 'Revenue 2023' not nested header rows). Include axis labels as column/row headers. For non-chart pictures, the text field should be omitted.\n - Formula: Format its text as LaTeX.\n - Table: Format its text as HTML.\n - All Others (Text, Title, etc.): Format their text as Markdown.\n\n4. Constraints:\n - The output text must be the original text from the image, with no translation.\n - All layout elements must be sorted according to human reading order.\n\n5. Final Output: Return ONLY a JSON array. Each element MUST be:\n{\"bbox\": [x1, y1, x2, y2], \"category\": \"<category>\", \"text\": \"<content>\"}\nNo markdown fences, no prose outside the JSON.\n", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/qwen.py#L69-L98" | |
| } | |
| ], | |
| "note": "Qwen layout prompt (JSON output), thinking on (set in the chat template, not the prompt)." | |
| }, | |
| "qwen3_5_4b_vllm_layout": { | |
| "messages": [ | |
| { | |
| "role": "user", | |
| "text": "Please output the layout information from the PDF image, including each layout element's bbox, its category, and the corresponding text content within the bbox.\n\n1. Bbox format: [x1, y1, x2, y2] using normalized 0-1000 coordinates.\n\n2. Layout Categories: The possible categories are ['Caption', 'Footnote', 'Formula', 'List-item', 'Page-footer', 'Page-header', 'Picture', 'Section-header', 'Table', 'Text', 'Title'].\n\n3. Text Extraction & Formatting Rules:\n - Picture: If the picture is a chart or graph, extract all data points and format as an HTML table with flat combined column headers (e.g., 'Revenue 2023' not nested header rows). Include axis labels as column/row headers. For non-chart pictures, the text field should be omitted.\n - Formula: Format its text as LaTeX.\n - Table: Format its text as HTML.\n - All Others (Text, Title, etc.): Format their text as Markdown.\n\n4. Constraints:\n - The output text must be the original text from the image, with no translation.\n - All layout elements must be sorted according to human reading order.\n\n5. Final Output: Return ONLY a JSON array. Each element MUST be:\n{\"bbox\": [x1, y1, x2, y2], \"category\": \"<category>\", \"text\": \"<content>\"}\nNo markdown fences, no prose outside the JSON.\n", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/qwen.py#L69-L98" | |
| } | |
| ], | |
| "note": "Qwen layout prompt (JSON output)." | |
| }, | |
| "dots_ocr_1_5_parse": { | |
| "messages": [ | |
| { | |
| "role": "user", | |
| "text": "Please output the layout information from the PDF image, including each layout element's bbox, its category, and the corresponding text content within the bbox.\n\n1. Bbox format: [x1, y1, x2, y2]\n\n2. Layout Categories: The possible categories are ['Caption', 'Footnote', 'Formula', 'List-item', 'Page-footer', 'Page-header', 'Picture', 'Section-header', 'Table', 'Text', 'Title'].\n\n3. Text Extraction & Formatting Rules:\n - Picture: If the picture is a chart or graph, extract all data points and format as an HTML table with flat combined column headers (e.g., 'Revenue 2023' not nested header rows). Include axis labels as column/row headers. For non-chart pictures, the text field should be omitted.\n - Formula: Format its text as LaTeX.\n - Table: Format its text as HTML.\n - All Others (Text, Title, etc.): Format their text as Markdown.\n\n4. Constraints:\n - The output text must be the original text from the image, with no translation.\n - All layout elements must be sorted according to human reading order.\n\n5. Final Output: The entire output must be a single JSON object.\n", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/dots_ocr.py#L67-L94" | |
| } | |
| ], | |
| "note": "dots.ocr prompt_layout_all_en_v1_5." | |
| }, | |
| "chandra2_vllm": { | |
| "messages": [ | |
| { | |
| "role": "user", | |
| "text": "OCR this image to HTML, arranged as layout blocks. Each layout block should be a div with the data-bbox attribute representing the bounding box of the block in x0 y0 x1 y1 format. Bboxes are normalized 0-1000. The data-label attribute is the label for the block.\n\nUse the following labels:\n- Caption\n- Footnote\n- Equation-Block\n- List-Group\n- Page-Header\n- Page-Footer\n- Image\n- Section-Header\n- Table\n- Text\n- Complex-Block\n- Code-Block\n- Form\n- Table-Of-Contents\n- Figure\n- Chemical-Block\n- Diagram\n- Bibliography\n- Blank-Page\n\nOnly use these tags ['math', 'br', 'i', 'b', 'u', 'del', 'sup', 'sub', 'table', 'tr', 'td', 'p', 'th', 'div', 'pre', 'h1', 'h2', 'h3', 'h4', 'h5', 'ul', 'ol', 'li', 'input', 'a', 'span', 'img', 'hr', 'tbody', 'small', 'caption', 'strong', 'thead', 'big', 'code', 'chem'], and these attributes ['class', 'colspan', 'rowspan', 'display', 'checked', 'type', 'border', 'value', 'style', 'href', 'alt', 'align', 'data-bbox', 'data-label'].\n\nGuidelines:\n* Inline math: Surround math with <math>...</math> tags. Math expressions should be rendered in KaTeX-compatible LaTeX. Use display for block math.\n* Tables: Use colspan and rowspan attributes to match table structure.\n* Formatting: Maintain consistent formatting with the image, including spacing, indentation, subscripts/superscripts, and special characters.\n* Images: Include a description of any images in the alt attribute of an <img> tag. Do not fill out the src property. Describe in detail inside the div tag. Also convert charts to high fidelity data, and convert diagrams to mermaid.\n* Forms: Mark checkboxes and radio buttons properly.\n* Text: join lines together properly into paragraphs using <p>...</p> tags. Use <br> tags for line breaks within paragraphs, but only when absolutely necessary to maintain meaning.\n* Chemistry: Use <chem>...</chem> tags for chemical formulas with reactive SMILES.\n* Lists: Preserve indents and proper list markers.\n* Use the simplest possible HTML structure that accurately represents the content of the block.\n* Make sure the text is accurate and easy for a human to read and interpret. Reading order should be correct and natural.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/chandra2.py#L124-L156" | |
| } | |
| ], | |
| "note": "Chandra ocr_layout task prompt." | |
| }, | |
| "lightonocr3_4b_vllm": { | |
| "messages": [ | |
| { | |
| "role": "user", | |
| "text": "grounding", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/lightonocr-3.py#L50-L50" | |
| } | |
| ], | |
| "note": "LightOnOCR-3 grounding mode: the prompt is the single word 'grounding'." | |
| }, | |
| "lightonocr3_0_8b_vllm": { | |
| "messages": [ | |
| { | |
| "role": "user", | |
| "text": "grounding", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/providers/parse/lightonocr-3.py#L50-L50" | |
| } | |
| ], | |
| "note": "LightOnOCR-3 grounding mode: the prompt is the single word 'grounding'." | |
| }, | |
| "jinaocr_vllm": { | |
| "messages": [ | |
| { | |
| "role": "user", | |
| "text": "Transcribe the provided document image into a clean Markdown format, preserving the natural reading order. Convert every table into an HTML table. Convert every chart or graph into an HTML table of its underlying data values, including the axis and series labels.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/pipelines/parse.py#L1258-L1261" | |
| } | |
| ], | |
| "note": "The model card's default prompt plus a chart clause, set in the pipeline config." | |
| }, | |
| "pulse_ultra_2": { | |
| "messages": [ | |
| { | |
| "role": "additional_prompt", | |
| "text": "Preserve chart captions, title hierarchy, table structure, and semantic formatting. Carry inline styling into the markdown: **bold**, *italic*, <u>underline</u>, ~~strikethrough~~, <sup>superscript</sup>, <sub>subscript</sub>, <mark>highlight</mark>, and heading levels (#, ##, ###) that match the visual hierarchy.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/pipelines/parse.py#L271-L276" | |
| }, | |
| { | |
| "role": "custom_image_prompt", | |
| "text": "For charts and plots, output a markdown table where each row is one data point. Include every visible chart label needed to identify the value as explicit row or column text, including series names, legend labels, axis labels, category or sign labels, units, and years. Do not leave grouping labels only in prose.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/pipelines/parse.py#L265-L270" | |
| }, | |
| { | |
| "role": "custom_refine_prompt", | |
| "text": "Preserve every inline formatting cue that is visually present in the source page image, using exactly these syntaxes: **bold**, *italic*, <u>underline</u>, ~~strikethrough~~, <sup>superscript</sup>, <sub>subscript</sub>, <mark>highlighted</mark>, and fenced code blocks for monospaced code. Match markdown heading levels (#, ##, ###) to the visual heading hierarchy on the page. Apply a formatting mark only where it is visible in the image; never add emphasis that is not there.", | |
| "source": "https://github.com/run-llama/ParseBench/blob/1908f9ae053ee902dc604430aba980468b42bb7c/src/parse_bench/inference/pipelines/parse.py#L277-L284" | |
| } | |
| ], | |
| "note": "Instructions passed to the Pulse API (not a raw model prompt)." | |
| } | |
| } | |
| } |