Hi Spisak, Josh,
Currently, there is no direct way to get both outputs (custom extraction and full OCR) in a single API call. However, we can achieve this by:
Calling Both Models Separately:
- Use the Custom Extraction Model to get the structured data for your specific fields.
- Use the Read Model to extract the full text layer for the document.
Implementation:
- You can integrate both calls into your workflow. For example:
- First, call the Read model to extract the full text layer.
- Then, call the Custom Extraction model to extract the specific fields you need.
Efficiency:
While this approach requires two API calls, you can optimize it by running them in parallel if your application allows.
Hope this helps. Do let us know if you have any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful.