Skip to content

Commit

Permalink
feat(client-lex-models-v2): This release makes AMAZON.QnAIntent gener…
Browse files Browse the repository at this point in the history
…ally 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.
  • Loading branch information
awstools committed Feb 29, 2024
1 parent 86ce4d1 commit 19c93a4
Show file tree
Hide file tree
Showing 7 changed files with 715 additions and 129 deletions.
56 changes: 56 additions & 0 deletions clients/client-lex-models-v2/src/commands/CreateIntentCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,34 @@ export interface CreateIntentCommandOutput extends CreateIntentResponse, __Metad
* },
* },
* },
* qnAIntentConfiguration: { // QnAIntentConfiguration
* dataSourceConfiguration: { // DataSourceConfiguration
* opensearchConfiguration: { // OpensearchConfiguration
* domainEndpoint: "STRING_VALUE", // required
* indexName: "STRING_VALUE", // required
* exactResponse: true || false,
* exactResponseFields: { // ExactResponseFields
* questionField: "STRING_VALUE", // required
* answerField: "STRING_VALUE", // required
* },
* includeFields: [ // OSIncludeFields
* "STRING_VALUE",
* ],
* },
* kendraConfiguration: { // QnAKendraConfiguration
* kendraIndex: "STRING_VALUE", // required
* queryFilterStringEnabled: true || false,
* queryFilterString: "STRING_VALUE",
* exactResponse: true || false,
* },
* bedrockKnowledgeStoreConfiguration: { // BedrockKnowledgeStoreConfiguration
* bedrockKnowledgeBaseArn: "STRING_VALUE", // required
* },
* },
* bedrockModelConfiguration: { // BedrockModelSpecification
* modelArn: "STRING_VALUE", // required
* },
* },
* };
* const command = new CreateIntentCommand(input);
* const response = await client.send(command);
Expand Down Expand Up @@ -935,6 +963,34 @@ export interface CreateIntentCommandOutput extends CreateIntentResponse, __Metad
* // },
* // },
* // },
* // qnAIntentConfiguration: { // QnAIntentConfiguration
* // dataSourceConfiguration: { // DataSourceConfiguration
* // opensearchConfiguration: { // OpensearchConfiguration
* // domainEndpoint: "STRING_VALUE", // required
* // indexName: "STRING_VALUE", // required
* // exactResponse: true || false,
* // exactResponseFields: { // ExactResponseFields
* // questionField: "STRING_VALUE", // required
* // answerField: "STRING_VALUE", // required
* // },
* // includeFields: [ // OSIncludeFields
* // "STRING_VALUE",
* // ],
* // },
* // kendraConfiguration: { // QnAKendraConfiguration
* // kendraIndex: "STRING_VALUE", // required
* // queryFilterStringEnabled: true || false,
* // queryFilterString: "STRING_VALUE",
* // exactResponse: true || false,
* // },
* // bedrockKnowledgeStoreConfiguration: { // BedrockKnowledgeStoreConfiguration
* // bedrockKnowledgeBaseArn: "STRING_VALUE", // required
* // },
* // },
* // bedrockModelConfiguration: { // BedrockModelSpecification
* // modelArn: "STRING_VALUE", // required
* // },
* // },
* // };
*
* ```
Expand Down
28 changes: 28 additions & 0 deletions clients/client-lex-models-v2/src/commands/DescribeIntentCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,34 @@ export interface DescribeIntentCommandOutput extends DescribeIntentResponse, __M
* // },
* // },
* // },
* // qnAIntentConfiguration: { // QnAIntentConfiguration
* // dataSourceConfiguration: { // DataSourceConfiguration
* // opensearchConfiguration: { // OpensearchConfiguration
* // domainEndpoint: "STRING_VALUE", // required
* // indexName: "STRING_VALUE", // required
* // exactResponse: true || false,
* // exactResponseFields: { // ExactResponseFields
* // questionField: "STRING_VALUE", // required
* // answerField: "STRING_VALUE", // required
* // },
* // includeFields: [ // OSIncludeFields
* // "STRING_VALUE",
* // ],
* // },
* // kendraConfiguration: { // QnAKendraConfiguration
* // kendraIndex: "STRING_VALUE", // required
* // queryFilterStringEnabled: true || false,
* // queryFilterString: "STRING_VALUE",
* // exactResponse: true || false,
* // },
* // bedrockKnowledgeStoreConfiguration: { // BedrockKnowledgeStoreConfiguration
* // bedrockKnowledgeBaseArn: "STRING_VALUE", // required
* // },
* // },
* // bedrockModelConfiguration: { // BedrockModelSpecification
* // modelArn: "STRING_VALUE", // required
* // },
* // },
* // };
*
* ```
Expand Down
56 changes: 56 additions & 0 deletions clients/client-lex-models-v2/src/commands/UpdateIntentCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,34 @@ export interface UpdateIntentCommandOutput extends UpdateIntentResponse, __Metad
* },
* },
* },
* qnAIntentConfiguration: { // QnAIntentConfiguration
* dataSourceConfiguration: { // DataSourceConfiguration
* opensearchConfiguration: { // OpensearchConfiguration
* domainEndpoint: "STRING_VALUE", // required
* indexName: "STRING_VALUE", // required
* exactResponse: true || false,
* exactResponseFields: { // ExactResponseFields
* questionField: "STRING_VALUE", // required
* answerField: "STRING_VALUE", // required
* },
* includeFields: [ // OSIncludeFields
* "STRING_VALUE",
* ],
* },
* kendraConfiguration: { // QnAKendraConfiguration
* kendraIndex: "STRING_VALUE", // required
* queryFilterStringEnabled: true || false,
* queryFilterString: "STRING_VALUE",
* exactResponse: true || false,
* },
* bedrockKnowledgeStoreConfiguration: { // BedrockKnowledgeStoreConfiguration
* bedrockKnowledgeBaseArn: "STRING_VALUE", // required
* },
* },
* bedrockModelConfiguration: { // BedrockModelSpecification
* modelArn: "STRING_VALUE", // required
* },
* },
* };
* const command = new UpdateIntentCommand(input);
* const response = await client.send(command);
Expand Down Expand Up @@ -912,6 +940,34 @@ export interface UpdateIntentCommandOutput extends UpdateIntentResponse, __Metad
* // },
* // },
* // },
* // qnAIntentConfiguration: { // QnAIntentConfiguration
* // dataSourceConfiguration: { // DataSourceConfiguration
* // opensearchConfiguration: { // OpensearchConfiguration
* // domainEndpoint: "STRING_VALUE", // required
* // indexName: "STRING_VALUE", // required
* // exactResponse: true || false,
* // exactResponseFields: { // ExactResponseFields
* // questionField: "STRING_VALUE", // required
* // answerField: "STRING_VALUE", // required
* // },
* // includeFields: [ // OSIncludeFields
* // "STRING_VALUE",
* // ],
* // },
* // kendraConfiguration: { // QnAKendraConfiguration
* // kendraIndex: "STRING_VALUE", // required
* // queryFilterStringEnabled: true || false,
* // queryFilterString: "STRING_VALUE",
* // exactResponse: true || false,
* // },
* // bedrockKnowledgeStoreConfiguration: { // BedrockKnowledgeStoreConfiguration
* // bedrockKnowledgeBaseArn: "STRING_VALUE", // required
* // },
* // },
* // bedrockModelConfiguration: { // BedrockModelSpecification
* // modelArn: "STRING_VALUE", // required
* // },
* // },
* // };
*
* ```
Expand Down
Loading

0 comments on commit 19c93a4

Please sign in to comment.