Interface CfnDataSourcePropsMixin.VectorIngestionConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDataSourcePropsMixin.VectorIngestionConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnDataSourcePropsMixin
@Stability(Stable)
public static interface CfnDataSourcePropsMixin.VectorIngestionConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Contains details about how to ingest the documents in a data source.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.bedrock.*;
VectorIngestionConfigurationProperty vectorIngestionConfigurationProperty = VectorIngestionConfigurationProperty.builder()
.chunkingConfiguration(ChunkingConfigurationProperty.builder()
.chunkingStrategy("chunkingStrategy")
.fixedSizeChunkingConfiguration(FixedSizeChunkingConfigurationProperty.builder()
.maxTokens(123)
.overlapPercentage(123)
.build())
.hierarchicalChunkingConfiguration(HierarchicalChunkingConfigurationProperty.builder()
.levelConfigurations(List.of(HierarchicalChunkingLevelConfigurationProperty.builder()
.maxTokens(123)
.build()))
.overlapTokens(123)
.build())
.semanticChunkingConfiguration(SemanticChunkingConfigurationProperty.builder()
.breakpointPercentileThreshold(123)
.bufferSize(123)
.maxTokens(123)
.build())
.build())
.contextEnrichmentConfiguration(ContextEnrichmentConfigurationProperty.builder()
.bedrockFoundationModelConfiguration(BedrockFoundationModelContextEnrichmentConfigurationProperty.builder()
.enrichmentStrategyConfiguration(EnrichmentStrategyConfigurationProperty.builder()
.method("method")
.build())
.modelArn("modelArn")
.build())
.type("type")
.build())
.customTransformationConfiguration(CustomTransformationConfigurationProperty.builder()
.intermediateStorage(IntermediateStorageProperty.builder()
.s3Location(S3LocationProperty.builder()
.uri("uri")
.build())
.build())
.transformations(List.of(TransformationProperty.builder()
.stepToApply("stepToApply")
.transformationFunction(TransformationFunctionProperty.builder()
.transformationLambdaConfiguration(TransformationLambdaConfigurationProperty.builder()
.lambdaArn("lambdaArn")
.build())
.build())
.build()))
.build())
.parsingConfiguration(ParsingConfigurationProperty.builder()
.bedrockDataAutomationConfiguration(BedrockDataAutomationConfigurationProperty.builder()
.parsingModality("parsingModality")
.build())
.bedrockFoundationModelConfiguration(BedrockFoundationModelConfigurationProperty.builder()
.modelArn("modelArn")
.parsingModality("parsingModality")
.parsingPrompt(ParsingPromptProperty.builder()
.parsingPromptText("parsingPromptText")
.build())
.build())
.parsingStrategy("parsingStrategy")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnDataSourcePropsMixin.VectorIngestionConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectDetails about how to chunk the documents in the data source.default ObjectThe context enrichment configuration used for ingestion of the data into the vector store.default ObjectA custom document transformer for parsed data source documents.default ObjectConfigurations for a parser to use for parsing documents in your data source.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getChunkingConfiguration
Details about how to chunk the documents in the data source.A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried.
Returns union: either
IResolvableorCfnDataSourcePropsMixin.ChunkingConfigurationProperty- See Also:
-
getContextEnrichmentConfiguration
The context enrichment configuration used for ingestion of the data into the vector store.Returns union: either
IResolvableorCfnDataSourcePropsMixin.ContextEnrichmentConfigurationProperty- See Also:
-
getCustomTransformationConfiguration
A custom document transformer for parsed data source documents.Returns union: either
IResolvableorCfnDataSourcePropsMixin.CustomTransformationConfigurationProperty- See Also:
-
getParsingConfiguration
Configurations for a parser to use for parsing documents in your data source.If you exclude this field, the default parser will be used.
Returns union: either
IResolvableorCfnDataSourcePropsMixin.ParsingConfigurationProperty- See Also:
-
builder
@Stability(Stable) static CfnDataSourcePropsMixin.VectorIngestionConfigurationProperty.Builder builder()
-