predict_qa_results
¶
predict_qa_results(
aws_account_id: AwsAccountId,
query_text: QAQueryText,
*,
config_overrides: Optional[QuickSightClientConfig] = None,
include_quick_sight_q_index: Optional[IncludeQuickSightQIndex] = None,
include_generated_answer: Optional[IncludeGeneratedAnswer] = None,
max_topics_to_consider: Optional[MaxTopicsToConsider] = None,
) -> PredictQAResultsResponse
Predicts existing visuals or generates new visuals to answer a given query.
This API uses trusted identity propagation to ensure that an end user is authenticated and receives the embed URL that is specific to that user. The IAM Identity Center application that the user has logged into needs to have trusted Identity Propagation enabled for Quick with the scope value set to quicksight:read. Before you use this action, make sure that you have configured the relevant Quick resource and permissions.
We recommend enabling the QSearchStatus API to unlock the full potential of PredictQnA. When QSearchStatus is enabled, it first checks the specified dashboard for any existing visuals that match the question. If no matching visuals are found, PredictQnA uses generative Q&A to provide an answer. To update the QSearchStatus, see UpdateQuickSightQSearchConfiguration.
Parameters:
-
aws_account_id(AwsAccountId) –The ID of the Amazon Web Services account that the user wants to execute Predict QA results in.
-
query_text(QAQueryText) –The query text to be used to predict QA results.
-
include_quick_sight_q_index(Optional[IncludeQuickSightQIndex], default:None) –Indicates whether Q indicies are included or excluded.
-
include_generated_answer(Optional[IncludeGeneratedAnswer], default:None) –Indicates whether generated answers are included or excluded.
-
max_topics_to_consider(Optional[MaxTopicsToConsider], default:None) –The number of maximum topics to be considered to predict QA results.
Raises:
-
AccessDeniedException–You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
ThrottlingException–Access is throttled.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/quick_sight.py
15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 | |