Skip to main content

Overview

Penquify enables end-to-end testing of document-processing agents. Generate documents with known data, produce realistic photos, feed them to your agent, and verify both the extractions and downstream actions.

The Test Loop

1

Generate documents with known ground truth

Use penquify to create documents where every field value is controlled.
2

Generate realistic photos

Apply variations to simulate real operational conditions.
3

Feed photos to your agent

Send the generated photos to your vision agent, document processor, or OCR pipeline.
4

Verify extractions against ground truth

Compare what the agent extracted with the known source data.
5

Verify downstream actions

Check that the agent performed the correct actions (e.g., created the right SAP entries, sent the right notifications).

Example: Testing a Receiving Agent

Testing with Degraded Photos

Test agent robustness with harder variations:

Regression Testing

Generate a fixed dataset once, save it, and rerun your agent against it whenever you push changes:
For regression testing, generate the dataset once and commit the photos + ground truth to your test fixtures. This ensures deterministic tests without re-calling Gemini on every run.