Skip to content

ParsingConfiguration

Source code in docs_src/capo_bedrock_agent/types/parsing_configuration.py
class ParsingConfiguration(TypedDict, closed=True):
    parsing_strategy: "capo_bedrock_agent.types.parsing_strategy.ParsingStrategy"
    """<p>The parsing strategy for the data source.</p> <p>For managed knowledge bases, the strategy that you can select depends on the embedding model that your knowledge base uses:</p> <ul> <li> <p>If your knowledge base uses a native multimodal embedding model, specify <code>MULTI_MODAL_EMBEDDINGS</code>. 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.</p> </li> <li> <p>Otherwise, specify <code>SMART_PARSING</code>.</p> </li> </ul> <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-managed-customize-ingestion.html">Customize ingestion for managed knowledge bases</a>.</p>"""
    bedrock_foundation_model_configuration: NotRequired[
        "capo_bedrock_agent.types.bedrock_foundation_model_configuration.BedrockFoundationModelConfiguration"
    ]
    """<p>If you specify <code>BEDROCK_FOUNDATION_MODEL</code> as the parsing strategy for ingesting your data source, use this object to modify configurations for using a foundation model to parse documents.</p>"""
    bedrock_data_automation_configuration: NotRequired[
        "capo_bedrock_agent.types.bedrock_data_automation_configuration.BedrockDataAutomationConfiguration"
    ]
    """<p>If you specify <code>BEDROCK_DATA_AUTOMATION</code> as the parsing strategy for ingesting your data source, use this object to modify configurations for using the Amazon Bedrock Data Automation parser.</p>"""

bedrock_data_automation_configuration instance-attribute

bedrock_data_automation_configuration: NotRequired[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.

bedrock_foundation_model_configuration instance-attribute

bedrock_foundation_model_configuration: NotRequired[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.

parsing_strategy instance-attribute

parsing_strategy: 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.