Skip to content

Commit 19c93a4

Browse files
author
awstools
committed
feat(client-lex-models-v2): This release makes AMAZON.QnAIntent generally available in Amazon Lex. This generative AI feature leverages large language models available through Amazon Bedrock to automate frequently asked questions (FAQ) experience for end-users.
1 parent 86ce4d1 commit 19c93a4

File tree

7 files changed

+715
-129
lines changed

7 files changed

+715
-129
lines changed

clients/client-lex-models-v2/src/commands/CreateIntentCommand.ts

+56
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,34 @@ export interface CreateIntentCommandOutput extends CreateIntentResponse, __Metad
501501
* },
502502
* },
503503
* },
504+
* qnAIntentConfiguration: { // QnAIntentConfiguration
505+
* dataSourceConfiguration: { // DataSourceConfiguration
506+
* opensearchConfiguration: { // OpensearchConfiguration
507+
* domainEndpoint: "STRING_VALUE", // required
508+
* indexName: "STRING_VALUE", // required
509+
* exactResponse: true || false,
510+
* exactResponseFields: { // ExactResponseFields
511+
* questionField: "STRING_VALUE", // required
512+
* answerField: "STRING_VALUE", // required
513+
* },
514+
* includeFields: [ // OSIncludeFields
515+
* "STRING_VALUE",
516+
* ],
517+
* },
518+
* kendraConfiguration: { // QnAKendraConfiguration
519+
* kendraIndex: "STRING_VALUE", // required
520+
* queryFilterStringEnabled: true || false,
521+
* queryFilterString: "STRING_VALUE",
522+
* exactResponse: true || false,
523+
* },
524+
* bedrockKnowledgeStoreConfiguration: { // BedrockKnowledgeStoreConfiguration
525+
* bedrockKnowledgeBaseArn: "STRING_VALUE", // required
526+
* },
527+
* },
528+
* bedrockModelConfiguration: { // BedrockModelSpecification
529+
* modelArn: "STRING_VALUE", // required
530+
* },
531+
* },
504532
* };
505533
* const command = new CreateIntentCommand(input);
506534
* const response = await client.send(command);
@@ -935,6 +963,34 @@ export interface CreateIntentCommandOutput extends CreateIntentResponse, __Metad
935963
* // },
936964
* // },
937965
* // },
966+
* // qnAIntentConfiguration: { // QnAIntentConfiguration
967+
* // dataSourceConfiguration: { // DataSourceConfiguration
968+
* // opensearchConfiguration: { // OpensearchConfiguration
969+
* // domainEndpoint: "STRING_VALUE", // required
970+
* // indexName: "STRING_VALUE", // required
971+
* // exactResponse: true || false,
972+
* // exactResponseFields: { // ExactResponseFields
973+
* // questionField: "STRING_VALUE", // required
974+
* // answerField: "STRING_VALUE", // required
975+
* // },
976+
* // includeFields: [ // OSIncludeFields
977+
* // "STRING_VALUE",
978+
* // ],
979+
* // },
980+
* // kendraConfiguration: { // QnAKendraConfiguration
981+
* // kendraIndex: "STRING_VALUE", // required
982+
* // queryFilterStringEnabled: true || false,
983+
* // queryFilterString: "STRING_VALUE",
984+
* // exactResponse: true || false,
985+
* // },
986+
* // bedrockKnowledgeStoreConfiguration: { // BedrockKnowledgeStoreConfiguration
987+
* // bedrockKnowledgeBaseArn: "STRING_VALUE", // required
988+
* // },
989+
* // },
990+
* // bedrockModelConfiguration: { // BedrockModelSpecification
991+
* // modelArn: "STRING_VALUE", // required
992+
* // },
993+
* // },
938994
* // };
939995
*
940996
* ```

clients/client-lex-models-v2/src/commands/DescribeIntentCommand.ts

+28
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,34 @@ export interface DescribeIntentCommandOutput extends DescribeIntentResponse, __M
481481
* // },
482482
* // },
483483
* // },
484+
* // qnAIntentConfiguration: { // QnAIntentConfiguration
485+
* // dataSourceConfiguration: { // DataSourceConfiguration
486+
* // opensearchConfiguration: { // OpensearchConfiguration
487+
* // domainEndpoint: "STRING_VALUE", // required
488+
* // indexName: "STRING_VALUE", // required
489+
* // exactResponse: true || false,
490+
* // exactResponseFields: { // ExactResponseFields
491+
* // questionField: "STRING_VALUE", // required
492+
* // answerField: "STRING_VALUE", // required
493+
* // },
494+
* // includeFields: [ // OSIncludeFields
495+
* // "STRING_VALUE",
496+
* // ],
497+
* // },
498+
* // kendraConfiguration: { // QnAKendraConfiguration
499+
* // kendraIndex: "STRING_VALUE", // required
500+
* // queryFilterStringEnabled: true || false,
501+
* // queryFilterString: "STRING_VALUE",
502+
* // exactResponse: true || false,
503+
* // },
504+
* // bedrockKnowledgeStoreConfiguration: { // BedrockKnowledgeStoreConfiguration
505+
* // bedrockKnowledgeBaseArn: "STRING_VALUE", // required
506+
* // },
507+
* // },
508+
* // bedrockModelConfiguration: { // BedrockModelSpecification
509+
* // modelArn: "STRING_VALUE", // required
510+
* // },
511+
* // },
484512
* // };
485513
*
486514
* ```

clients/client-lex-models-v2/src/commands/UpdateIntentCommand.ts

+56
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,34 @@ export interface UpdateIntentCommandOutput extends UpdateIntentResponse, __Metad
471471
* },
472472
* },
473473
* },
474+
* qnAIntentConfiguration: { // QnAIntentConfiguration
475+
* dataSourceConfiguration: { // DataSourceConfiguration
476+
* opensearchConfiguration: { // OpensearchConfiguration
477+
* domainEndpoint: "STRING_VALUE", // required
478+
* indexName: "STRING_VALUE", // required
479+
* exactResponse: true || false,
480+
* exactResponseFields: { // ExactResponseFields
481+
* questionField: "STRING_VALUE", // required
482+
* answerField: "STRING_VALUE", // required
483+
* },
484+
* includeFields: [ // OSIncludeFields
485+
* "STRING_VALUE",
486+
* ],
487+
* },
488+
* kendraConfiguration: { // QnAKendraConfiguration
489+
* kendraIndex: "STRING_VALUE", // required
490+
* queryFilterStringEnabled: true || false,
491+
* queryFilterString: "STRING_VALUE",
492+
* exactResponse: true || false,
493+
* },
494+
* bedrockKnowledgeStoreConfiguration: { // BedrockKnowledgeStoreConfiguration
495+
* bedrockKnowledgeBaseArn: "STRING_VALUE", // required
496+
* },
497+
* },
498+
* bedrockModelConfiguration: { // BedrockModelSpecification
499+
* modelArn: "STRING_VALUE", // required
500+
* },
501+
* },
474502
* };
475503
* const command = new UpdateIntentCommand(input);
476504
* const response = await client.send(command);
@@ -912,6 +940,34 @@ export interface UpdateIntentCommandOutput extends UpdateIntentResponse, __Metad
912940
* // },
913941
* // },
914942
* // },
943+
* // qnAIntentConfiguration: { // QnAIntentConfiguration
944+
* // dataSourceConfiguration: { // DataSourceConfiguration
945+
* // opensearchConfiguration: { // OpensearchConfiguration
946+
* // domainEndpoint: "STRING_VALUE", // required
947+
* // indexName: "STRING_VALUE", // required
948+
* // exactResponse: true || false,
949+
* // exactResponseFields: { // ExactResponseFields
950+
* // questionField: "STRING_VALUE", // required
951+
* // answerField: "STRING_VALUE", // required
952+
* // },
953+
* // includeFields: [ // OSIncludeFields
954+
* // "STRING_VALUE",
955+
* // ],
956+
* // },
957+
* // kendraConfiguration: { // QnAKendraConfiguration
958+
* // kendraIndex: "STRING_VALUE", // required
959+
* // queryFilterStringEnabled: true || false,
960+
* // queryFilterString: "STRING_VALUE",
961+
* // exactResponse: true || false,
962+
* // },
963+
* // bedrockKnowledgeStoreConfiguration: { // BedrockKnowledgeStoreConfiguration
964+
* // bedrockKnowledgeBaseArn: "STRING_VALUE", // required
965+
* // },
966+
* // },
967+
* // bedrockModelConfiguration: { // BedrockModelSpecification
968+
* // modelArn: "STRING_VALUE", // required
969+
* // },
970+
* // },
915971
* // };
916972
*
917973
* ```

0 commit comments

Comments
 (0)