Extract Tables
This operation extracts a table from a source, such as a document or file.
Prerequisites
Ensure you have learned the Document Processing Book before using this operation. After learning the Book, make sure to publish your Agent and create a new Playground for it to take effect.
Syntax
extract a table from {source}
the description is "{description}"
the creativity is {creativity}
the openai model is "{model}"
the visual reference is {visual reference}
the extraction mode is "{extraction mode}"
Inputs
Required
source
- A variable to represent the information source to extract a table from.
- Examples:
document
,file
,text
description
- A description of the table to be extracted.
Optional
creativity
- A number that controls the creativity of the response. Higher values produce more creative responses.
- Default: 0.0
- Range: 0.0-2.0.
model
- The OpenAI model to use to generate the response.
- Default: gpt-4o-latest
visual reference
- A variable to represent a document or image that serves as a visual reference, helping GPT enhance its accuracy. This refers to data defined earlier in the automation.
- Examples
the file
,the document
,the text
extraction mode
- A string that represents the accuracy as it sends location data to GPT
- Allowed Values:
precise
Example
extract a table from the document
the openai model is "gpt-4o"
the visual reference is the document
the extraction mode is "precise"
the description is "The table has invoice number, date and amount. the amount should not have the currency
in it. Keep only the first 4 digits of the invoice number. It has only one row of data."
the table
Updated 2 days ago