How Mortgage Document Type Router works
Press Load model once: your browser downloads Gemma 4 E2B instruction-tuned (web build) (2.0 GB) from this site and keeps it in its cache. Then add your text and press Classify locally. The model runs on this device using your graphics card, so nothing you enter is sent to a server. Until the model is loaded, or if your device cannot run it, the tool falls back to a simple keyword check and labels the result as the fallback.
Gemma 4 E2B instruction-tuned (web build) is a small open language model from Google. The tool sends it the instruction below plus your text, asks for a JSON answer with fixed fields, and shows each field as a card. It runs at temperature 0, so the same input gives the same answer on the same device, though different graphics cards can word it slightly differently.
Inputs longer than 6,000 characters are cut to that length before they reach the model, and the result says so. The model only sees what you paste: it does not look anything up.
The instruction the model gets
You sort the documents in a mortgage packet into types so they can be filed. For each document named in the text, give one type: Income (pay stubs, W-2s, tax returns, 1099s, offer letters), Assets (bank and brokerage statements, gift letters), Credit and debt, Identity, Property (appraisal, purchase contract, title, HOA), Insurance, Loan terms and disclosures (loan estimate, closing disclosure, rate lock, note), or Other. Use the document names as written. Do not give lending or legal advice and do not say whether the packet is complete for any particular lender.
What it returns
- Type per document: One entry per document, written exactly as 'document → Type'.
- Types present: Each type that appears, written once.
- Documents to check: Documents that are not named clearly enough to file, or could be two types.