Class ExtractionResult


  • public final class ExtractionResult
    extends Object
    The inference result for an extraction request.
    • Constructor Detail

      • ExtractionResult

        public ExtractionResult​(InferenceFields fields,
                                RawText rawText,
                                RagMetadata rag)
        Creates a new ExtractionResult instance.
        Parameters:
        fields - Extracted fields, the key corresponds to the field's name in the data schema.
        rawText - If 'rawText' was activated, contains the extracted text of the document.
        rag - If 'rag' was activated, contains metadata about the RAG operation.
      • ExtractionResult

        public ExtractionResult()
    • Method Detail

      • getFields

        public InferenceFields getFields()
        Extracted fields, the key corresponds to the field's name in the data schema.
      • getRawText

        public RawText getRawText()
        If 'rawText' was activated, contains the extracted text of the document.
      • getRag

        public RagMetadata getRag()
        If 'rag' was activated, contains metadata about the RAG operation.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object