---
title: "Stage 1: Files and formats"
---

# 1. Files and formats

**10:00–10:45 · 20 minutes of practice**

An agent works on files in a folder. It can read, write, run tools and check what they produce.
You will find out what the files in your folder contain and see what is lost when a PDF becomes Markdown.

Use the unzipped workshop pack and [The State of Open Data 2024 report PDF](../practice-data/sood-2024-report/state-of-open-data-2024-report.pdf). [Report source and licence](../practice-data/sood-2024-report/SOURCE.md)

## Steps

1. **Find the files · 5 minutes.** Open the unzipped folder in Codex (in the ChatGPT app) or Claude Code. Paste:

   > Work inside this workshop folder. Show me its full path. List every file by relative path and format, with a short note on what you could do with each format. Save the list as notes/file-inventory.md. Show me a few examples from it. For one Markdown file, point out where the YAML front matter ends and the text begins.

2. **Convert the report · 8 minutes.** Paste:

   > Convert practice-data/sood-2024-report/state-of-open-data-2024-report.pdf to Markdown in outputs/sood-report.md. Use a PDF reader or extractor already available to you. Put a page marker at each page boundary. Preserve headings, table cells and footnote references where you can. Mark any uncertain layout or missing text. Tell me which method you used and show me where to start checking it.

3. **Check the conversion · 7 minutes.** Open the PDF beside the Markdown. Start with Table 1 on PDF page 7, then pick a page with columns and one footnote. Follow one table row across, read from the bottom of one column to the top of the next and follow a footnote marker to its text. Ask the agent to fix one problem you can point to.

## If you get stuck

If you cannot open a folder in the agent, unzip the pack and attach the PDF in a browser chat if your account supports attachments. Ask for the Markdown for one page and compare it against the PDF in your browser. If attachments are unavailable, paste the text copied from one PDF page and ask the agent to reconstruct its layout as Markdown.

## If you finish early

Try LiteParse with OCRia-nano-1 and compare the same page. With `uv` already available, use `uv tool install liteparse`. With a user-writeable Python environment, use `python3 -m pip install --user liteparse` on macOS or `py -m pip install --user liteparse` on Windows. Run `lit models pull ocria-nano` and ask the agent to use `lit parse` and save a fresh Markdown copy. If installation or the model download is blocked, compare the first conversion with the text you can select and copy from the PDF. [LiteParse CLI reference](https://developers.llamaindex.ai/liteparse/cli-reference/)
