2023/12/01 - Amazon Q Connect - 1 new api methods
Changes This release adds the PutFeedback API and allows providing feedback against the specified assistant for the specified target.
Provides feedback against the specified assistant for the specified target. This API only supports generative targets.
See also: AWS API Documentation
Request Syntax
client.put_feedback( assistantId='string', contentFeedback={ 'generativeContentFeedbackData': { 'relevance': 'HELPFUL'|'NOT_HELPFUL' } }, targetId='string', targetType='RECOMMENDATION'|'RESULT' )
string
[REQUIRED]
The identifier of the Amazon Q assistant.
dict
[REQUIRED]
Information about the feedback provided.
generativeContentFeedbackData (dict) --
Information about the feedback for a generative target type.
relevance (string) -- [REQUIRED]
The relevance of the feedback.
string
[REQUIRED]
The identifier of the feedback target.
string
[REQUIRED]
The type of the feedback target.
dict
Response Syntax
{ 'assistantArn': 'string', 'assistantId': 'string', 'contentFeedback': { 'generativeContentFeedbackData': { 'relevance': 'HELPFUL'|'NOT_HELPFUL' } }, 'targetId': 'string', 'targetType': 'RECOMMENDATION'|'RESULT' }
Response Structure
(dict) --
assistantArn (string) --
The Amazon Resource Name (ARN) of the Amazon Q assistant.
assistantId (string) --
The identifier of the Amazon Q assistant.
contentFeedback (dict) --
Information about the feedback provided.
generativeContentFeedbackData (dict) --
Information about the feedback for a generative target type.
relevance (string) --
The relevance of the feedback.
targetId (string) --
The identifier of the feedback target.
targetType (string) --
The type of the feedback target.