Module Values.ParsingConfigurationSource

Settings for parsing document contents. If you exclude this field, the default parser converts the contents of each document into text before splitting it into chunks. Specify the parsing strategy to use in the parsingStrategy field and include the relevant configuration, or omit it to use the Amazon Bedrock default parser. For more information, see Parsing options for your data source. If you specify BEDROCK_DATA_AUTOMATION or BEDROCK_FOUNDATION_MODEL and it fails to parse a file, the Amazon Bedrock default parser will be used instead.

Sourcetype nonrec t = {
  1. parsingStrategy : ParsingStrategy.t;
    (*

    The parsing strategy for the data source.

    *)
  2. bedrockFoundationModelConfiguration : BedrockFoundationModelConfiguration.t option;
    (*

    If you specify BEDROCK_FOUNDATION_MODEL as the parsing strategy for ingesting your data source, use this object to modify configurations for using a foundation model to parse documents.

    *)
  3. bedrockDataAutomationConfiguration : BedrockDataAutomationConfiguration.t option;
    (*

    If you specify BEDROCK_DATA_AUTOMATION as the parsing strategy for ingesting your data source, use this object to modify configurations for using the Amazon Bedrock Data Automation parser.

    *)
}
Sourceval context_ : string
Sourceval make : ?bedrockFoundationModelConfiguration:??? -> ?bedrockDataAutomationConfiguration:??? -> parsingStrategy:ParsingStrategy.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Structure of (string * [> `Enum of string | `String of BedrockModelArn.t | `Structure of (string * [> `String of ParsingPromptText.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t