DMAP
The machine-readable index for datasheets
PDF in → structural document map out. DMAP answers two questions no PDF answers by itself: where does each topic live and what does each page physically look like: tables, prose, vector drawings, scans, blanks.
Built entirely from deterministic analysis: the text layer, the table of contents, headings, and a per-page geometry census. No LLM is involved, so the same document and map version give the same map. Maps are cached by the PDF's SHA-256 and expire 30 days after they were last written.
Document Map
Beyond RAG: The Structural Blueprint for AI Agents
Chunk-and-embed RAG can split a table and spend a large context budget on a 500-page datasheet. DMAP (Document Map) is a deterministic index, built without an LLM, that maps a PDF's structure, measures each page's physical anatomy, sorts its pages into 34 targets, and points AI agents at the pages most likely to hold each of the 25 public datasheet topics, before a model spends tokens on the PDF.
ATTINYatmel-2586-avr-8-bit-microcontroller-attiny25-attiny45-attiny85_datasheet.pdf
sha256 0e3fa6a7d608de9b... · 234 pages · document_map_agent_v1
Each square is one page of the PDF, colored by what is physically on it: tables, running text, drawings and so on. The map reads this from the page itself, with no model involved.
25 Datasheet Topics
Points to the pages for pinouts, package drawings, logic levels, memory maps, registers, thermal limits and more. The map sorts pages into 34 targets in all; the other 9 are internal views for our extraction modules, not in the agent index.
Physical Page Anatomy
Measures character counts, line alignment, numeric ratios, and dominant forms (table, prose, drawing).
Fewer Blind Searches
In one July 2026 test on one datasheet, an agent with the map needed 8 steps and no whole-document search; without it, 12 steps and six searches.
Honest Warnings & Limits
Flags missing text layers, capped censuses, and excluded table of contents pages in warnings[].
What it answers
One map, two layers of truth.
Claims ship with their confidence and their evidence, and the full delivery adds the measured facts behind each page's verdict, so your tools can re-derive their own judgment instead of trusting a label.
Topic targets
Where the pinout, package & mechanical, electrical & logic levels, timing, thermal, absolute maximum ratings, registers and cautions pages live, derived from the document's own table of contents, headings and captions. A target can still miss, which is why each one carries a confidence.
Page anatomy
A per-page physical fingerprint: char and line statistics, numeric density, aligned rows, plus a MuPDF geometry census that counts vector paths, thin ruling lines (the skeleton datasheet tables are drawn with), raster coverage and rotated labels. The verdict: table, prose, mixed, vector drawing, scanned image, blank, or an honest unknown.
For agents
Built for AI agents first.
We built DMAP because our own extraction agents needed it. In a July 2026 test on ST's STM32F103C8 datasheet, our pinout agent was given the map and a simple routing discipline: read the candidate pages first, pick the tool per page, broad search only as a declared fallback. It finished in 8 steps with no whole-document search; without the map the same agent used all 12 allowed steps, six of them whole-document searches. That is one run per arm on one datasheet, not a benchmark; a later re-run of the guided arm took 7 steps and one search. The discipline ships with every download as AGENT_INSTRUCTIONS.md.
| dominant_form | What your agent should do |
|---|---|
| table | Parse rows straight from the text layer. |
| prose | Read as narrative text. |
| vector_drawing | Don't parse text: render the page, use vision or figure parsing. |
| raster_image | Scanned or photographic: OCR / vision required. |
| unknown | An honest “don't know”: inspect the measured facts yourself. |
| blank | Skip. |
- One versioned JSON file: absent values come back as null or empty, not as missing keys (footnotes and caption_pages appear only when there are some).
- Page numbers are physical PDF pages (1-based), bound to the exact document by SHA-256.
- No extracted values: DMAP routes you to the evidence and does not invent any.
document_map.json: a real 16-page test PDF, abridged
{
"schema_version": "document_map_delivery_v3",
"cached": true,
"document": {
"sha256": "f86467c299…",
"filename": "sy2a29117.pdf",
"total_pages": 16,
"has_text_layer": true
},
"module_targets": [
{ "module_id": "pinout",
"candidate_pages": [1, 2, 3, 4],
"confidence": "medium", "source": "heading",
"reason": "heading:Pin Description: pin description" },
{ "module_id": "absolute_max",
"candidate_pages": [2, 3, 4, 5, 6, 7],
"confidence": "high", "source": "heading",
"reason": "heading:Absolute Maximum Ratings (Note 1): …" }
],
"pages": [
{ "page_number": 4, "char_count": 2006,
"anatomy": {
"dominant_form": "table",
"confidence": "high",
"geometry": {
"horizontal_ruling_count": 113,
"vector_path_count": 889,
"text_token_count": 208
}
}
},
{ "page_number": 13, "char_count": 325,
"anatomy": {
"dominant_form": "raster_image",
"confidence": "high",
"geometry": { "raster_coverage_ratio": 0.392 }
}
}
],
"warnings": [
"Heading allocation kept 48 of 230 candidate(s) across 16/16 page(s) with candidates …"
]
}Remote MCP server
Plug it into your agent. DMAP speaks MCP.
DatasheetVend runs a hosted Model Context Protocol server (Streamable HTTP, stateless). Alongside the extraction tools it exposes DMAP as three read-only tools: datasheetvend_extract_document_map, datasheetvend_read_document_map_instructions and datasheetvend_inspect_document_page. Authenticate with an API key from your dashboard (DMAP → API access). Over MCP, an already-mapped document is served free from the cache, and a new document costs 1 module credit to map.
Cursor / any MCP client: mcp.json
{
"mcpServers": {
"datasheetvend": {
"url": "https://datasheetvend.com/api/mcp",
"headers": {
"Authorization": "Bearer dsv_YOUR_API_KEY"
}
}
}
}Claude Code: one command
claude mcp add --transport http datasheetvend \ https://datasheetvend.com/api/mcp \ --header "Authorization: Bearer dsv_YOUR_API_KEY"
- Read-only tools, key-scoped access, HTTPS-only document URLs. The server never reads local files.
- Your agent should call
datasheetvend_read_document_map_instructionsonce per session. It returns the routing discipline described above, and it is free.
Use cases
Who it's for.
AI extraction pipelines
A routing layer before any LLM, OCR, or vision call. Feed the map to your agent and it opens the likely pages first, with a tool chosen for each page, instead of searching a 300-page PDF blind.
Hardware & PCB teams
Stop scrolling. The map tells you where the pinout, electrical characteristics, package outline, and cautions live, with a confidence and the evidence behind each claim.
CAD / EDA tooling
A pre-index for symbol, footprint, and land-pattern generation: which pages carry mechanical drawings, which carry ruled dimension tables, which are image-only.
Search & RAG systems
Chunk technical PDFs by what pages actually are (tables, prose, drawings, scans) instead of by arbitrary token windows.
QA & benchmarks
A deterministic baseline to compare an extractor's page choices against, and a stable per-page fingerprint for regression nets.
Inside DatasheetVend
DMAP is the routing layer our own extraction engine uses to pick which pages to read, and extraction still runs if a map cannot be built. You get the same index we use, as a product.
Agentic Architecture
Why Document MAPs? The shift from reading to routing.
Chunk-and-embed pipelines split a document by size and rank the pieces by similarity. DMAP gives an AI agent a deterministic structural map of an engineering document before it spends context budget.
Deterministic Navigation
Navigation Over RAG Guesswork
Fixed-size chunking can split a table or cut a BGA ball map in half, and similarity search returns likely matches rather than located ones. DMAP lists the pages where each topic's evidence was found, with a confidence, so an agent can open those pages first.
Efficiency
A Smaller Context Budget
Instead of putting a whole PDF into a model's context, an agent reads the DMAP index first (about 31 KB of JSON for ST's 114-page STM32F103C8 datasheet), then opens only the pages it names.
Hardware Safety
SHA-256 Provenance
In hardware engineering, a single misread pin can ruin a board. DMAP binds physical PDF page numbers to the SHA-256 hash of the exact file, so a page reference can be checked against the PDF it was made from.
API & Agents
Built for the AI Agent Ecosystem
DMAP is served as document_map.json over REST (GET /api/v1/jobs/{id}/document-map) and as MCP tools, so an agent or a script can navigate a datasheet from the map without scraping the app.
Limits
What DMAP deliberately does not do.
Clear boundaries by design: it routes to pages and holds no extracted values.
No extracted values
It contains no extracted values: no pin names, no dimensions, no ratings. It routes you directly to the pages that hold them.
Physical indices
It uses physical PDF page numbers. The printed page labels from the table of contents are listed separately, beside the physical page they were read from.
Honest fallbacks
On scanned documents it says so explicitly, has_text_layer: false plus honest warnings, instead of pretending.
A new account gets five free passes for the extraction modules. Mapping a document costs 1 module credit, and the dashboard maps a PDF you upload or one already in your library.