markdown field of figure-type chunks. For more information, see Image-Based Chunks.
Use the optional custom_prompts parameter to tell how to describe figures during parsing.
When to Add Custom Prompts
Adding custom prompts can be helpful if:- The default image descriptions do not fit your use case.
- The downstream processing tasks require the image descriptions to use a specific format or language.
- The images or charts are unique to your organization or use case and you need to provide additional context about what they represent.
Sample Prompts
Make the description more concise This is helpful if you want to minimize the number of input tokens when running the Split or Extract APIs, or if the images are straightforward and do not need much description.Supported Models
Thecustom_prompts parameter is only supported with .
does not generate figure captions, so the parameter does not apply when using that model. Passing it with will return a 422 error. For more information about parsing models, see Document Pre-Trained Transformers (Parsing Models).
Requirements
Thecustom_prompts parameter accepts a JSON string. Only the figure key is supported. Any other key will be rejected.
The custom prompt can include up to 512 characters.

