Starters
A starter is a complete extractor definition maintained by Deskew for a common document kind, with two sample documents and their expected output. Clone one, run it on your own documents, adjust the descriptions and rules to your forms, and publish. Starters are versioned with the API; your clone is yours and does not change when the starter does.
Available starters
Section titled “Available starters”| Id | Document | Highlights |
|---|---|---|
hospital-invoice |
Itemised hospital or clinic bill | Hospital and patient blocks, line items with categories, subtotal, discount, tax, total, paid and balance; rules for sums, date order and paid plus balance |
discharge-summary |
Discharge summary or card | Diagnoses with ICD-10 pattern, procedures, treatment summary, condition at discharge, medications, follow-up; stay length and date rules |
pharmacy-bill |
Chemist or hospital pharmacy bill | Items with batch, expiry, MRP, GST; sums and expiry-before-bill rules |
diagnostic-report |
Lab or imaging report | Tests with result, unit, reference range and flag; impression; collection before report rule |
prescription |
Doctor’s prescription | Doctor registration, medicines with dose, frequency and duration, advice, follow-up |
health-claim-form |
Reimbursement or pre-authorisation form | Policy and member ids, insured and patient, hospitalisation, claimed components with a sum rule, bank details, declaration |
motor-repair-estimate |
Garage estimate, job card or invoice | Vehicle with registration pattern and VIN, parts and labour groups, totals with reconciliation rules |
id-document |
Aadhaar, PAN, driving licence, passport, voter ID | Document type, number with per-type format rules, holder details, issue and expiry |
All starters use locale: en-IN (day-first dates, INR default), reject look-alike documents through
document.reject_if, and return evidence. The identity-document number and the claim form’s bank
account number are masked (mask: true): rules such as the
PAN format check run on the full value, the output keeps the last four characters. Turn mask off in
your clone if your process needs the full number.
Cloning
Section titled “Cloning”In the dashboard choose New extractor → From a starter. Over the API:
curl https://api.deskew.dev/v1/extractors \ -H "Authorization: Bearer $DESKEW_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "hospital-invoice", "from_starter": "hospital-invoice", "include_test_set": true }'include_test_set (default true) copies the starter’s sample documents and expected output into
the new extractor’s test set, so Run all gives a score immediately and your own documents can be
compared against a known-good baseline. The clone is a draft until you publish it.
GET /v1/starters lists the starters with field, rule and sample counts; GET /v1/starters/{id}
returns the full definition if you want to read it without cloning.
Samples and the weekly check
Section titled “Samples and the weekly check”The sample documents are synthetic: generated PDFs with realistic Indian claims content, not real
customer files. Every Monday the ocr-eval workflow runs each starter over its samples with the
production model and records the field accuracy under starters/results/; a drop opens an issue, so
a model or prompt change that makes a starter worse is noticed within a week.