Start with a document your model can read.
PDF text is often out of order, missing headings or split across columns. Convert the document into structured Markdown before you chunk it.
Use a small, repeatable pipeline.
01
Upload the PDF
02
Request Markdown
03
Chunk by headings
04
Store embeddings
Keep the API request simple.
Use the request ID in your logs when a document needs review. This makes the pipeline easier to operate as volume grows.
POST /v1/markdown -F file=@document.pdf → markdown + pages + request id