


Improve text fidelity with generative OCR
To have Unstructured perform generative OCR optimization, do the following:- For Unstructured Pipelines users, add an Enrichment node of type Generative OCR to an Unstructured custom workflow.
- For Unstructured API users, add a Generative OCR task.
You add this task as either as an object in a
workflow_nodesarray (for curl) or as aWorkflowNodein aWorkflowNodescollection (for Python). This object or collection applies whenever you create a workflow, update a workflow, or create a workflow job that processes local files.
Customize the generative OCR prompt
Unstructured API users can replace the default prompt that the model follows for generative OCR. Setprompt_interface_overrides.prompt.user in the Generative OCR task settings. The workflow designer does not support custom prompts for generative OCR.
