← Back to document 504

AI review โ€” page 35

claude-opus-4-8 ยท prompt v7 ยท 2026-09-04T15:09:15+00:00 ยท applied: yes ยท changed: yes

Screenshot sent to the model (reading-order tags burned on)

Annotated page 35

Instructions (system prompt)

The screenshot has annotations burned onto it that are NOT part of the document:
- a small red numbered tag at the top-left corner of each item, showing that item's position in the OCR-determined reading order (the same order the items appear in the json data);
- a red-and-white dotted outline around each item, showing the area the OCR detected for that content block.
Use the tags and outlines to see the detected reading order and item boundaries directly on the page, and judge that sequence against how a human would naturally read it. Ignore the annotations when checking text fidelity โ€” they overlay the content, they are not content.

For the given screenshot of a PDF's page and the attached json data, I want you to perform the following tasks in order...

Review the reading order set out in the json data and compare to what a natural reading order for that of a human would be by looking at the screenshot. Decide on any changes and re-arrange the items for the most logical reading order.
Look at all text for each item and correct any extraction errors like missing words, spelling mistakes etc.
Look at each item in the JSON and ensure that the OCR process has identified the item as the correct type: text, list item etc.
Look for any text that duplicates: if two items next to each other contain the exact same text but the text only appears once on the screenshot, one of them is an extraction error โ€” keep the item whose box matches where the text is visible and flag the other for removal.
Make amendments as you proceed through the items and list of instructions.
Reading Order Advice: If there is columns with headings and text, I wouldnt expect the reading order to jump from one heading straight to another if there is text associated with that heading.

Return format: Give me the json data back only, with the amendments you make.

Mechanical notes (so your answer can be applied automatically):
- Each item has an `id` โ€” keep every item and its `id` exactly as given; never invent, drop or duplicate ids. Re-arranging means changing the position of items (and their nesting) in the arrays.
- Never move text (or a type) from one item to another: each item's coordinates travel with its id, so to change reading order you must move the whole item object, and text amendments must be in-place corrections of that item's own text.
- To flag a duplicate item, keep it in the array and add `"remove": "duplicate"` to it โ€” never just delete it (deleted items are restored automatically).
- ids are opaque labels, not sequence numbers: never renumber them. After a removal or re-arrangement, every remaining item keeps the exact id it came with, even if the ids no longer look sequential.
- Text may contain `[pN.Mโ€ฆ]` placeholders marking where an inline formula belongs โ€” treat them as part of the text and leave them exactly where they are.
- `box` is [left, top, right, bottom] as percentages of the page from the top-left corner; return it unchanged.
- Respond with raw JSON only: no code fences, no commentary, same shape as the input (`{"items": [...]}`).

User message (json data sent)

Page 35 json data:

{"items":[{"id":"p35.1","type":"table","box":[8,12,89,87],"text":"","children":[{"id":"p35.1.1","type":"table_cell","box":[9,19,15,25],"text":"English+\\nNorwich","children":[{"id":"p35.1.1.1","type":"link","box":[18,29,29,33],"text":"[ rw ch.g .uk]"}]},{"id":"p35.1.2","type":"table_cell","box":[29,12,49,31],"text":"Free weekly ESOL classes, mum & baby groups, driving theory lessons, arts/crafts, and trips to support migrant integration.\\n[norwich.gov.uk]"},{"id":"p35.1.3","type":"table_cell","box":[49,12,69,31],"text":"Email: info@englishplus.org.uk","children":[{"id":"p35.1.3.1","type":"link","box":[59,22,70,26],"text":"[ rw ch.g .uk]"}]},{"id":"p35.1.4","type":"table_cell","box":[69,12,89,31],"text":"https://englishplus.org.uk/ (via directory)\\n[norwich.gov.uk]"},{"id":"p35.1.5","type":"table_cell","box":[9,40,16,45],"text":"The Zainab Project","children":[{"id":"p35.1.5.1","type":"link","box":[18,49,29,54],"text":"[ rw ch.g .uk]"}]},{"id":"p35.1.6","type":"table_cell","box":[29,31,49,50],"text":"Community cooking-based integration project that brings migrants and local residents together to learn skills through food.\\n[norwich.gov.uk]"},{"id":"p35.1.7","type":"table_cell","box":[49,31,69,50],"text":"Website: The Zainab Project"},{"id":"p35.1.8","type":"table_cell","box":[69,31,89,50],"text":"https://www.thezainabproject.com (via directory) [norwich.gov.uk]","children":[{"id":"p35.1.8.1","type":"link","box":[65,43,76,47],"text":"[ rw ch.g .uk]"}]},{"id":"p35.1.9","type":"table_cell","box":[9,57,17,68],"text":"Norfolk Community Law Service (NCLS)","children":[{"id":"p35.1.9.1","type":"link","box":[18,68,29,72],"text":"[ rw ch.g .uk]"}]},{"id":"p35.1.10","type":"table_cell","box":[29,50,49,68],"text":"Offers free immigration legal advice for migrants, including asylum, visas, family reunion and settlement issues.\\n[norwich.gov.uk]"},{"id":"p35.1.11","type":"table_cell","box":[49,50,69,68],"text":"Email: immigration@ncls.co.uk","children":[{"id":"p35.1.11.1","type":"link","box":[59,62,70,66],"text":"[ rw ch.g .uk]"}]},{"id":"p35.1.12","type":"table_cell","box":[69,50,89,68],"text":"https://www.ncls.co.uk/immigration-advice\\n[norwich.gov.uk]"},{"id":"p35.1.13","type":"table_cell","box":[9,72,18,86],"text":"Norwich International Youth Project (NIYP)"},{"id":"p35.1.14","type":"table_cell","box":[29,68,49,87],"text":"Supports young refugees and asylum seekers aged 11โ€“25 with wellbeing, education, English classes, and"},{"id":"p35.1.15","type":"table_cell","box":[49,68,69,87],"text":"Website: https://niyp.org.uk/"},{"id":"p35.1.16","type":"table_cell","box":[69,68,89,87],"text":"https://niyp.org.uk/ [niyp.org.uk]","children":[{"id":"p35.1.16.1","type":"link","box":[71,78,79,82],"text":"[ yp. rg.uk]"}]}]},{"id":"p35.2","type":"footer","box":[48,89,50,91],"text":"13"}]}

Model response

{"items":[{"id":"p35.1","type":"table","box":[8,12,89,87],"text":"","children":[{"id":"p35.1.1","type":"table_cell","box":[9,19,15,25],"text":"English+\\nNorwich","children":[{"id":"p35.1.1.1","type":"link","box":[18,29,29,33],"text":"[norwich.gov.uk]"}]},{"id":"p35.1.2","type":"table_cell","box":[29,12,49,31],"text":"Free weekly ESOL classes, mum & baby groups, driving theory lessons, arts/crafts, and trips to support migrant integration.\\n[norwich.gov.uk]"},{"id":"p35.1.3","type":"table_cell","box":[49,12,69,31],"text":"Email: info@englishplus.org.uk","children":[{"id":"p35.1.3.1","type":"link","box":[59,22,70,26],"text":"[norwich.gov.uk]"}]},{"id":"p35.1.4","type":"table_cell","box":[69,12,89,31],"text":"https://englishplus.org.uk/ (via directory)\\n[norwich.gov.uk]"},{"id":"p35.1.5","type":"table_cell","box":[9,40,16,45],"text":"The Zainab Project","children":[{"id":"p35.1.5.1","type":"link","box":[18,49,29,54],"text":"[norwich.gov.uk]"}]},{"id":"p35.1.6","type":"table_cell","box":[29,31,49,50],"text":"Community cooking-based integration project that brings migrants and local residents together to learn skills through food.\\n[norwich.gov.uk]"},{"id":"p35.1.7","type":"table_cell","box":[49,31,69,50],"text":"Website: The Zainab Project"},{"id":"p35.1.8","type":"table_cell","box":[69,31,89,50],"text":"https://www.thezainabproject.com (via directory) [norwich.gov.uk]","children":[{"id":"p35.1.8.1","type":"link","box":[65,43,76,47],"text":"[norwich.gov.uk]"}]},{"id":"p35.1.9","type":"table_cell","box":[9,57,17,68],"text":"Norfolk Community Law Service (NCLS)","children":[{"id":"p35.1.9.1","type":"link","box":[18,68,29,72],"text":"[norwich.gov.uk]"}]},{"id":"p35.1.10","type":"table_cell","box":[29,50,49,68],"text":"Offers free immigration legal advice for migrants, including asylum, visas, family reunion and settlement issues.\\n[norwich.gov.uk]"},{"id":"p35.1.11","type":"table_cell","box":[49,50,69,68],"text":"Email: immigration@ncls.co.uk","children":[{"id":"p35.1.11.1","type":"link","box":[59,62,70,66],"text":"[norwich.gov.uk]"}]},{"id":"p35.1.12","type":"table_cell","box":[69,50,89,68],"text":"https://www.ncls.co.uk/immigration-advice\\n[norwich.gov.uk]"},{"id":"p35.1.13","type":"table_cell","box":[9,72,18,86],"text":"Norwich International Youth Project (NIYP)"},{"id":"p35.1.14","type":"table_cell","box":[29,68,49,87],"text":"Supports young refugees and asylum seekers aged 11โ€“25 with wellbeing, education, English classes, and"},{"id":"p35.1.15","type":"table_cell","box":[49,68,69,87],"text":"Website: https://niyp.org.uk/"},{"id":"p35.1.16","type":"table_cell","box":[69,68,89,87],"text":"https://niyp.org.uk/ [niyp.org.uk]","children":[{"id":"p35.1.16.1","type":"link","box":[71,78,79,82],"text":"[niyp.org.uk]"}]}]},{"id":"p35.2","type":"footer","box":[48,89,50,91],"text":"13"}]}