first
, 1st
, 1
), then you can use this method to consistently format the ranking. You can reformat with instructions like reformat each inconsistently formatted instance of rank as a word (i.e. \"first\" not \"1st\" or \"1\")
.
key | value | description |
---|---|---|
id (required) | summarizer | The Anchor parameter is optional for fields that use this method. If you omit an anchor, Sensible searches the entire document for the data you want to extract. |
source_id (required) | field ID | Specifies a field whose output is a snippet of text with the information you want to transform. |
fields (required) | string array | IDs of the fields you want to extract. These IDs have an impact on the free-text extraction, so choose names that have a meaningful relationship to the target data to extract. For example, for a dollar amount of rent to extract, rent, rents, and rent_in_dollars are good naming choices. |
instructions | string | Prompt for the LLM, describing how to transform information from the text in the Source ID parameter.For more information about how to write prompts, see Query Group tips.For an example of using this parameter, see the Examples section. |
samples | object array | Short snippets of text similar to the text in the Source ID parameter, with examples of the information to extract. Use in addition to the Instructions parameter to increase the LLM’s accuracy. Contains these parameters:prompt (string): An example of the sort of free text that you want to transformvalues (string array): The target information to transform from this prompt. This array is a parallel array to the Fields parameter’s array. Parallel arrays are the same length and same sequence. If the LLM can’t find the target information in the Source ID parameter, it can generate an arbitrary value. To override this behavior, specify a Sample parameter whose Prompt parameter has a text snippet that’s missing the target data, and whose Values array indicates the data is missing (for example, “N/A” or “not found”).For an example of using this parameter, see the Examples section. |
Example document | Download link |
---|