Interface ParsingConfiguration.Builder

  • Method Details

    • parsingStrategy

      ParsingConfiguration.Builder parsingStrategy(String parsingStrategy)

      The parsing strategy for the data source.

      For managed knowledge bases, the strategy that you can select depends on the embedding model that your knowledge base uses:

      • If your knowledge base uses a native multimodal embedding model, specify MULTI_MODAL_EMBEDDINGS. With this strategy, files are sent directly to the embedding model instead of being parsed into text. This is the only strategy that is supported for these knowledge bases.

      • Otherwise, specify SMART_PARSING.

      For more information, see Customize ingestion for managed knowledge bases.

      Parameters:
      parsingStrategy - The parsing strategy for the data source.

      For managed knowledge bases, the strategy that you can select depends on the embedding model that your knowledge base uses:

      • If your knowledge base uses a native multimodal embedding model, specify MULTI_MODAL_EMBEDDINGS. With this strategy, files are sent directly to the embedding model instead of being parsed into text. This is the only strategy that is supported for these knowledge bases.

      • Otherwise, specify SMART_PARSING.

      For more information, see Customize ingestion for managed knowledge bases.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • parsingStrategy

      ParsingConfiguration.Builder parsingStrategy(ParsingStrategy parsingStrategy)

      The parsing strategy for the data source.

      For managed knowledge bases, the strategy that you can select depends on the embedding model that your knowledge base uses:

      • If your knowledge base uses a native multimodal embedding model, specify MULTI_MODAL_EMBEDDINGS. With this strategy, files are sent directly to the embedding model instead of being parsed into text. This is the only strategy that is supported for these knowledge bases.

      • Otherwise, specify SMART_PARSING.

      For more information, see Customize ingestion for managed knowledge bases.

      Parameters:
      parsingStrategy - The parsing strategy for the data source.

      For managed knowledge bases, the strategy that you can select depends on the embedding model that your knowledge base uses:

      • If your knowledge base uses a native multimodal embedding model, specify MULTI_MODAL_EMBEDDINGS. With this strategy, files are sent directly to the embedding model instead of being parsed into text. This is the only strategy that is supported for these knowledge bases.

      • Otherwise, specify SMART_PARSING.

      For more information, see Customize ingestion for managed knowledge bases.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • bedrockFoundationModelConfiguration

      ParsingConfiguration.Builder bedrockFoundationModelConfiguration(BedrockFoundationModelConfiguration bedrockFoundationModelConfiguration)

      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.

      Parameters:
      bedrockFoundationModelConfiguration - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bedrockFoundationModelConfiguration

      default ParsingConfiguration.Builder bedrockFoundationModelConfiguration(Consumer<BedrockFoundationModelConfiguration.Builder> bedrockFoundationModelConfiguration)

      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.

      This is a convenience method that creates an instance of the BedrockFoundationModelConfiguration.Builder avoiding the need to create one manually via BedrockFoundationModelConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to bedrockFoundationModelConfiguration(BedrockFoundationModelConfiguration).

      Parameters:
      bedrockFoundationModelConfiguration - a consumer that will call methods on BedrockFoundationModelConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • bedrockDataAutomationConfiguration

      ParsingConfiguration.Builder bedrockDataAutomationConfiguration(BedrockDataAutomationConfiguration bedrockDataAutomationConfiguration)

      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.

      Parameters:
      bedrockDataAutomationConfiguration - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bedrockDataAutomationConfiguration

      default ParsingConfiguration.Builder bedrockDataAutomationConfiguration(Consumer<BedrockDataAutomationConfiguration.Builder> bedrockDataAutomationConfiguration)

      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.

      This is a convenience method that creates an instance of the BedrockDataAutomationConfiguration.Builder avoiding the need to create one manually via BedrockDataAutomationConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to bedrockDataAutomationConfiguration(BedrockDataAutomationConfiguration).

      Parameters:
      bedrockDataAutomationConfiguration - a consumer that will call methods on BedrockDataAutomationConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: