Pdf Reaction Extraction
search/get_schema ("document extraction", "structure validation", "resolve chemical name").cloud_pubchem_resolve,Overview
A chemistry PDF - a paper or its supporting information - holds its reactions as pictures and prose, not as data. This skill turns such a PDF into a structured reaction table: reactants and products, conditions (catalyst, solvent, temperature, time), yields, and characterization tuples, with every row carrying provenance back to page and scheme. The value is the judgment around the extraction: which pages carry reactions at all, and which extracted rows are trustworthy enough to keep.
Guidance vs execution: structure validation and normalization come from tested Paramus tools. The page-to-rows extraction step is in implementation (document-ai); do not hand-parse PDFs in ad-hoc code.
When to Use
- A PDF (article or SI) is named and the question is "give me its reactions as a table"
- Building a reaction dataset from literature before modelling or route planning
Do not use for: planning a synthesis route from scratch (a route-design task), extracting non-reaction content such as spectra assignments only, or validating a single structure the user pastes as text - that is a direct tool call, not a workflow.
Domain Judgment
- The SI experimental section, not the article prose, carries the reliable yields; article-text numbers are often the best case, the SI is the record.
- Validate every extracted structure before it reaches the table; an unvalidated extraction is a transcription of an OCR error waiting to happen.
- Provenance per row is not optional: without page and scheme id a row cannot be re-checked against the source, and unchecked rows drift into datasets as fact.
Failure modes
- PDF is image-only scans with no text layer -> report; extraction quality depends on the document-ai step and no validated rows should be invented.
- A structure fails all validation routes -> keep the row out of the clean table, list it under rejected rows with the failing evidence.
- The document-ai step is not yet available -> deliver the page selection and the validation plan; mark the extraction step open, invent no rows.
Example
Asked: "Pull every reaction out of this coupling-paper SI into a table."
The skill selects the SI general-procedure pages and the article schemes, extracts
candidate rows - in implementation (document-ai) - then validates each structure:
cloud_pubchem_resolve on drawn names, validate_bigsmiles on each SMILES string,
search_chemical_by_formula where only a formula survived. A row whose yield reads
"132 %" is flagged low-confidence with the reason "yield above 100 percent"; a row whose
solvent name fails resolution is flagged "unresolved name". The final table keeps
every row but sorts flagged rows to the bottom, each with its provenance, e.g.
"page 4, Scheme 2".
Input
the PDF (path or upload), scope (whole document or named schemes/tables),
Output
the reaction table with per-row provenance and confidence flags; a list
Orchestrates · 3 tools
The skill decides at runtime which to call.
cloud_pubchem_resolve validate_bigsmiles search_chemical_by_formula
Frequently Asked Questions
What does Pdf Reaction Extraction do?
Turn a chemistry PDF (paper or supporting information) into a structured reaction table - reactants, conditions, yields, characterization tuples - with every extracted structure validated and every row carrying page/scheme provenance. Use when a user points at a PDF and asks for its reactions as data. Multi-tool WORKFLOW with page-selection and extraction-QA judgment.
What do I provide and what do I get back?
You provide: the PDF (path or upload), scope (whole document or named schemes/tables),. You get: the reaction table with per-row provenance and confidence flags; a list.
Which tools does it orchestrate?
3 catalog tools, chosen at runtime: cloud_pubchem_resolve, validate_bigsmiles, search_chemical_by_formula.