submit_feedback
async
¶
submit_feedback(
index_id: IndexId,
query_id: QueryId,
*,
config_overrides: Optional[AsynckendraClientConfig] = None,
click_feedback_items: Optional[ClickFeedbackList] = None,
relevance_feedback_items: Optional[RelevanceFeedbackList] = None,
) -> None
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.
Parameters:
-
index_id(IndexId) –The identifier of the index that was queried.
-
query_id(QueryId) –The identifier of the specific query for which you are submitting feedback. The query ID is returned in the response to the
QueryAPI. -
click_feedback_items(Optional[ClickFeedbackList], default:None) –Tells Amazon Kendra that a particular search result link was chosen by the user.
-
relevance_feedback_items(Optional[RelevanceFeedbackList], default:None) –Provides Amazon Kendra with relevant or not relevant feedback for whether a particular item was relevant to the search.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action. Please ensure you have the required permission policies and user accounts and try again.
-
InternalServerException–An issue occurred with the internal server used for your Amazon Kendra service. Please wait a few minutes and try again, or contact Support for help.
-
ResourceNotFoundException–The resource you want to use doesn’t exist. Please check you have provided the correct resource and try again.
-
ResourceUnavailableException–The resource you want to use isn't available. Please check you have provided the correct resource and try again.
-
ThrottlingException–The request was denied due to request throttling. Please reduce the number of requests and try again.
-
ValidationException–The input fails to satisfy the constraints set by the Amazon Kendra service. Please provide the correct input and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_kendra/_services/async_kendra.py
4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 | |