Class ParsingConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagent.model.ParsingConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ParsingConfiguration.Builder,ParsingConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class ParsingConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ParsingConfiguration.Builder,ParsingConfiguration>
Settings for parsing document contents. By default, the service converts the contents of each document into text before splitting it into chunks. To improve processing of PDF files with tables and images, you can configure the data source to convert the pages of text into images and use a model to describe the contents of each page.
To use a model to parse PDF documents, set the parsing strategy to
BEDROCK_FOUNDATION_MODELand specify the model or inference profile to use by ARN. You can also override the default parsing prompt with instructions for how to interpret images and tables in your documents. The following models are supported.-
Anthropic Claude 3 Sonnet -
anthropic.claude-3-sonnet-20240229-v1:0 -
Anthropic Claude 3 Haiku -
anthropic.claude-3-haiku-20240307-v1:0
You can get the ARN of a model with the ListFoundationModels action. Standard model usage charges apply for the foundation model parsing strategy.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceParsingConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BedrockFoundationModelConfigurationbedrockFoundationModelConfiguration()Settings for a foundation model used to parse documents for a data source.static ParsingConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ParsingStrategyparsingStrategy()The parsing strategy for the data source.StringparsingStrategyAsString()The parsing strategy for the data source.List<SdkField<?>>sdkFields()static Class<? extends ParsingConfiguration.Builder>serializableBuilderClass()ParsingConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
bedrockFoundationModelConfiguration
public final BedrockFoundationModelConfiguration bedrockFoundationModelConfiguration()
Settings for a foundation model used to parse documents for a data source.
- Returns:
- Settings for a foundation model used to parse documents for a data source.
-
parsingStrategy
public final ParsingStrategy parsingStrategy()
The parsing strategy for the data source.
If the service returns an enum value that is not available in the current SDK version,
parsingStrategywill returnParsingStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromparsingStrategyAsString().- Returns:
- The parsing strategy for the data source.
- See Also:
ParsingStrategy
-
parsingStrategyAsString
public final String parsingStrategyAsString()
The parsing strategy for the data source.
If the service returns an enum value that is not available in the current SDK version,
parsingStrategywill returnParsingStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromparsingStrategyAsString().- Returns:
- The parsing strategy for the data source.
- See Also:
ParsingStrategy
-
toBuilder
public ParsingConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ParsingConfiguration.Builder,ParsingConfiguration>
-
builder
public static ParsingConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends ParsingConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-