Pre-conditions are free filtering
Documents skipped by pre-conditions cost zero credits. Documents skipped by the classifier cost 1–3 credits each. Filter early, filter cheap.
Every stage in a bizSupply pipeline costs more than the one before it. The cheapest place to drop a document is the very beginning, before any AI call runs. That is what pre-conditions are for, and most teams underuse them.
Where credits start being spent
- Pre-conditions (file size, MIME type, content length, header pattern):
0 credits. - Classification (an AI call to label the document): 1–3 credits.
- Extraction (a larger AI call to pull structured fields): 3–25 credits.
- Aggregation (post-processing across documents): variable.
Pattern: deny first, allow specific
Default to dropping documents that do not match a known shape, rather than letting everything through and trusting the classifier. The classifier is good but not free; pre-conditions are both fast and free, so they should carry as much of the filtering work as possible.