This article is about the legacy agentic-doc library. Use the landingai-ade library for all new projects.
Save Groundings as Images
When using any of the parsing functions from the library, you can use the optionalgrounding_save_dir parameter to save each grounding as an image. The images are saved to a directory you specify.
Here’s an example of how to use the grounding_save_dir parameter with the parse parsing function:
File Path and File Name Conventions for Saved Groundings
Images are saved with this structure:TIMESTAMPis the time and date the document was parsedpage_0is the page numberTYPEis the chunk typeCHUNK_IDis the chunk IDYis the index of the grounding (in case a chunk spans multiple regions)

