generative-ai-cdk-constructs

@cdklabs/generative-ai-cdk-constructsDocs


@cdklabs/generative-ai-cdk-constructs / bedrock / ParsingStategy

Class: abstract ParsingStategy

Represents an advanced parsing strategy configuration for Knowledge Base ingestion.

See

https://docs.aws.amazon.com/bedrock/latest/userguide/kb-chunking-parsing.html#kb-advanced-parsing

Constructors

new ParsingStategy()

new ParsingStategy(): ParsingStategy

Returns

ParsingStategy

Properties

configuration

abstract configuration: ParsingConfigurationProperty

The CloudFormation property representation of this configuration

Methods

generatePolicyStatements()

abstract generatePolicyStatements(): PolicyStatement[]

Returns

PolicyStatement[]


foundationModel()

static foundationModel(props): ParsingStategy

Creates a Foundation Model-based parsing strategy for extracting non-textual information from documents such as tables and charts.

Parameters

props: FoundationModelParsingStategyProps

Returns

ParsingStategy

See

https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-ds.html#kb-ds-supported-doc-formats-limits