Skip to content
v2.274.0

VectorIngestionConfigurationProperty Struct ​

Contains details about how to ingest the documents in a data source.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wisdom as wisdom } from 'aws-cdk-lib';
const vectorIngestionConfigurationProperty: wisdom.CfnKnowledgeBase.VectorIngestionConfigurationProperty = {
  chunkingConfiguration: {
    chunkingStrategy: 'chunkingStrategy',

    // the properties below are optional
    fixedSizeChunkingConfiguration: {
      maxTokens: 123,
      overlapPercentage: 123,
    },
    hierarchicalChunkingConfiguration: {
      levelConfigurations: [{
        maxTokens: 123,
      }],
      overlapTokens: 123,
    },
    semanticChunkingConfiguration: {
      breakpointPercentileThreshold: 123,
      bufferSize: 123,
      maxTokens: 123,
    },
  },
  parsingConfiguration: {
    parsingStrategy: 'parsingStrategy',

    // the properties below are optional
    bedrockFoundationModelConfiguration: {
      modelArn: 'modelArn',

      // the properties below are optional
      parsingPrompt: {
        parsingPromptText: 'parsingPromptText',
      },
    },
  },
};

Properties ​

chunkingConfigurationIResolvable | CfnKnowledgeBase.ChunkingConfigurationPropertychunking_configurationtyping.Union[IResolvable, ChunkingConfigurationProperty]chunkingConfigurationIResolvableChunkingConfigurationIResolvableChunkingConfigurationinterface{}#
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.

parsingConfigurationIResolvable | CfnKnowledgeBase.ParsingConfigurationPropertyparsing_configurationtyping.Union[IResolvable, ParsingConfigurationProperty]parsingConfigurationIResolvableParsingConfigurationIResolvableParsingConfigurationinterface{}#
A custom parser for data source documents.