kendra.Client.
submit_feedback
(**kwargs)¶Enables you to provide feedback to Amazon Kendra to improve the performance of your index.
SubmitFeedback
is currently not supported in the Amazon Web Services GovCloud (US-West) region.
See also: AWS API Documentation
Request Syntax
response = client.submit_feedback(
IndexId='string',
QueryId='string',
ClickFeedbackItems=[
{
'ResultId': 'string',
'ClickTime': datetime(2015, 1, 1)
},
],
RelevanceFeedbackItems=[
{
'ResultId': 'string',
'RelevanceValue': 'RELEVANT'|'NOT_RELEVANT'
},
]
)
[REQUIRED]
The identifier of the index that was queried.
[REQUIRED]
The identifier of the specific query for which you are submitting feedback. The query ID is returned in the response to the Query
API.
Tells Amazon Kendra that a particular search result link was chosen by the user.
Gathers information about when a particular result was clicked by a user. Your application uses the SubmitFeedback
API to provide click information.
The identifier of the search result that was clicked.
The Unix timestamp of the date and time that the result was clicked.
Provides Amazon Kendra with relevant or not relevant feedback for whether a particular item was relevant to the search.
Provides feedback on how relevant a document is to a search. Your application uses the SubmitFeedback
API to provide relevance information.
The identifier of the search result that the user provided relevance feedback for.
Whether to document was relevant or not relevant to the search.
None
Exceptions
kendra.Client.exceptions.ValidationException
kendra.Client.exceptions.ResourceUnavailableException
kendra.Client.exceptions.ResourceNotFoundException
kendra.Client.exceptions.ThrottlingException
kendra.Client.exceptions.AccessDeniedException
kendra.Client.exceptions.InternalServerException