Skip to content

Commit fa74558

Browse files
author
AWS
committed
QBusiness Update: Adds functionality to enable/disable a new Q Business Hallucination Reduction feature. If enabled, Q Business will detect and attempt to remove Hallucinations from certain Chat requests.
1 parent 4cdacff commit fa74558

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "QBusiness",
4+
"contributor": "",
5+
"description": "Adds functionality to enable/disable a new Q Business Hallucination Reduction feature. If enabled, Q Business will detect and attempt to remove Hallucinations from certain Chat requests."
6+
}

services/qbusiness/src/main/resources/codegen-resources/service-2.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,6 +1436,7 @@
14361436
"errors":[
14371437
{"shape":"ResourceNotFoundException"},
14381438
{"shape":"InternalServerException"},
1439+
{"shape":"ConflictException"},
14391440
{"shape":"ThrottlingException"},
14401441
{"shape":"ValidationException"},
14411442
{"shape":"AccessDeniedException"},
@@ -4738,6 +4739,10 @@
47384739
"nextToken":{
47394740
"shape":"NextToken",
47404741
"documentation":"<p>If the <code>maxResults</code> response was incomplete because there is more data to retrieve, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of Amazon Q Business chat controls configured.</p>"
4742+
},
4743+
"hallucinationReductionConfiguration":{
4744+
"shape":"HallucinationReductionConfiguration",
4745+
"documentation":"<p> The hallucination reduction settings for your application.</p>"
47414746
}
47424747
}
47434748
},
@@ -5432,6 +5437,23 @@
54325437
"type":"list",
54335438
"member":{"shape":"GroupSummary"}
54345439
},
5440+
"HallucinationReductionConfiguration":{
5441+
"type":"structure",
5442+
"members":{
5443+
"hallucinationReductionControl":{
5444+
"shape":"HallucinationReductionControl",
5445+
"documentation":"<p>Controls whether hallucination reduction has been enabled or disabled for your application. The default status is <code>DISABLED</code>. </p>"
5446+
}
5447+
},
5448+
"documentation":"<p>Configuration information required to setup hallucination reduction. For more information, see <a href=\"amazonq/latest/qbusiness-ug/hallucination-reduction.html\">hallucination reduction</a>.</p> <note> <p>The hallucination reduction feature won't work if chat orchestration controls are enabled for your application.</p> </note>"
5449+
},
5450+
"HallucinationReductionControl":{
5451+
"type":"string",
5452+
"enum":[
5453+
"ENABLED",
5454+
"DISABLED"
5455+
]
5456+
},
54355457
"HookConfiguration":{
54365458
"type":"structure",
54375459
"members":{
@@ -8048,6 +8070,13 @@
80488070
"min":0,
80498071
"pattern":"\\P{C}*"
80508072
},
8073+
"SystemMessageType":{
8074+
"type":"string",
8075+
"enum":[
8076+
"RESPONSE",
8077+
"GROUNDED_RESPONSE"
8078+
]
8079+
},
80518080
"Tag":{
80528081
"type":"structure",
80538082
"required":[
@@ -8141,6 +8170,10 @@
81418170
"TextOutputEvent":{
81428171
"type":"structure",
81438172
"members":{
8173+
"systemMessageType":{
8174+
"shape":"SystemMessageType",
8175+
"documentation":"<p>The type of AI-generated message in a <code>TextOutputEvent</code>. Amazon Q Business currently supports two types of messages:</p> <ul> <li> <p> <code>RESPONSE</code> - The Amazon Q Business system response.</p> </li> <li> <p> <code>GROUNDED_RESPONSE</code> - The corrected, hallucination-reduced, response returned by Amazon Q Business. Available only if hallucination reduction is supported and configured for the application and detected in the end user chat query by Amazon Q Business.</p> </li> </ul>"
8176+
},
81448177
"conversationId":{
81458178
"shape":"ConversationId",
81468179
"documentation":"<p>The identifier of the conversation with which the text output event is associated.</p>"
@@ -8377,6 +8410,10 @@
83778410
"creatorModeConfiguration":{
83788411
"shape":"CreatorModeConfiguration",
83798412
"documentation":"<p>The configuration details for <code>CREATOR_MODE</code>.</p>"
8413+
},
8414+
"hallucinationReductionConfiguration":{
8415+
"shape":"HallucinationReductionConfiguration",
8416+
"documentation":"<p> The hallucination reduction settings for your application.</p>"
83808417
}
83818418
}
83828419
},

0 commit comments

Comments
 (0)