DataSourceConfigurationProperty Struct
Contains details about the configuration of the knowledge store used for the AMAZON.QnAIntent . You must have already created the knowledge store and indexed the documents within it.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lex as lex } from 'aws-cdk-lib';
const dataSourceConfigurationProperty: lex.CfnBot.DataSourceConfigurationProperty = {
bedrockKnowledgeStoreConfiguration: {
bedrockKnowledgeBaseArn: 'bedrockKnowledgeBaseArn',
bkbExactResponseFields: {
answerField: 'answerField',
},
exactResponse: false,
},
kendraConfiguration: {
exactResponse: false,
kendraIndex: 'kendraIndex',
queryFilterStringEnabled: false,
// the properties below are optional
queryFilterString: 'queryFilterString',
},
opensearchConfiguration: {
domainEndpoint: 'domainEndpoint',
exactResponse: false,
exactResponseFields: {
answerField: 'answerField',
questionField: 'questionField',
},
includeFields: ['includeFields'],
indexName: 'indexName',
},
};
Properties
bedrockKnowledgeStoreConfigurationIResolvable | CfnBot.BedrockKnowledgeStoreConfigurationPropertybedrock_knowledge_store_configurationtyping.Union[IResolvable, BedrockKnowledgeStoreConfigurationProperty]bedrockKnowledgeStoreConfigurationIResolvableBedrockKnowledgeStoreConfigurationIResolvableBedrockKnowledgeStoreConfigurationinterface{}#Contains details about the configuration of the Amazon Bedrock knowledge base used for the `AMAZON.QnAIntent` . To set up a knowledge base, follow the steps at [Building a knowledge base](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html) .
kendraConfigurationIResolvable | CfnBot.QnAKendraConfigurationPropertykendra_configurationtyping.Union[IResolvable, QnAKendraConfigurationProperty]kendraConfigurationIResolvableKendraConfigurationIResolvableKendraConfigurationinterface{}#Contains details about the configuration of the Amazon Kendra index used for the `AMAZON.QnAIntent` . To create a Amazon Kendra index, follow the steps at [Creating an index](https://docs.aws.amazon.com/kendra/latest/dg/create-index.html) .
opensearchConfigurationIResolvable | CfnBot.OpensearchConfigurationPropertyopensearch_configurationtyping.Union[IResolvable, OpensearchConfigurationProperty]opensearchConfigurationIResolvableOpensearchConfigurationIResolvableOpensearchConfigurationinterface{}#Contains details about the configuration of the Amazon OpenSearch Service database used for the `AMAZON.QnAIntent` . To create a domain, follow the steps at [Creating and managing Amazon OpenSearch Service domains](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/createupdatedomains.html) .