Package ai.extend.types
Class ExtractAdvancedOptions
- java.lang.Object
-
- ai.extend.types.ExtractAdvancedOptions
-
public final class ExtractAdvancedOptions extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExtractAdvancedOptions.Builder
-
Method Summary
-
-
-
Method Detail
-
getModelReasoningInsightsEnabled
public java.util.Optional<java.lang.Boolean> getModelReasoningInsightsEnabled()
- Returns:
- Whether to enable model reasoning insights.
-
getAdvancedMultimodalEnabled
public java.util.Optional<java.lang.Boolean> getAdvancedMultimodalEnabled()
- Returns:
- Whether to enable advanced multimodal features.
-
getCitationsEnabled
public java.util.Optional<java.lang.Boolean> getCitationsEnabled()
- Returns:
- Whether to enable citations in the output.
-
getCitationMode
public java.util.Optional<ExtractAdvancedOptionsCitationMode> getCitationMode()
- Returns:
- Controls the granularity of citations returned alongside extracted values. Requires
citationsEnabled=trueand a base processor version that supports bounding box citations.line: Use OCR lines for citations. This can return one or more relevant OCR lines for each citation. This is the default mode.word: Narrow each matched citation down to the relevant OCR word span when possible. Note: this might still return line citations in cases where the citation model is unable to reliably narrow down to a word-level citation. Typically, this only makes sense when you are doing array extraction and want precise word citations from a given cell in a table to match an array property, e.g.line_items.total.block: Use parser blocks (e.g. full paragraphs, key-val regions, tables, lists, etc.) and return block-level polygons for each citation. Will have highest recall in terms of overlap with the extracted value source, but least granularity.
-
getArrayCitationStrategy
public java.util.Optional<ExtractAdvancedOptionsArrayCitationStrategy> getArrayCitationStrategy()
- Returns:
- Granularity for array citations. This requires citationsEnabled=true and a base processor version that supports property-level array citations (extraction_performance ≥ 4.4.0).
-
getArrayStrategy
public java.util.Optional<ArrayStrategy> getArrayStrategy()
- Returns:
- Strategy for handling large arrays in documents.
-
getChunkingOptions
public java.util.Optional<ExtractChunkingOptions> getChunkingOptions()
-
getExcelSheetRanges
public java.util.Optional<java.util.List<ExcelSheetRange>> getExcelSheetRanges()
- Returns:
- Ranges of sheet indices to extract from Excel documents.
-
getExcelSheetSelectionStrategy
public java.util.Optional<ExtractAdvancedOptionsExcelSheetSelectionStrategy> getExcelSheetSelectionStrategy()
- Returns:
- Strategy for selecting sheets from Excel documents.
-
getPageRanges
public java.util.Optional<java.util.List<PageRangesItem>> getPageRanges()
-
getReviewAgent
public java.util.Optional<ExtractAdvancedOptionsReviewAgent> getReviewAgent()
- Returns:
- Configuration for the review agent that analyzes extraction results.
When enabled, each field in the output metadata will include a
reviewAgentScore(1-5) and may include additionalinsightsof typeissueorreview_summaryto help identify fields that may need manual review.To learn more, view the Review Agent Documentation
-
getCurrentDateEnabled
public java.util.Optional<java.lang.Boolean> getCurrentDateEnabled()
- Returns:
- Whether to include the current date as context for the model during extraction. Defaults to
false.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static ExtractAdvancedOptions.Builder builder()
-
-