predict_qa_results
async
¶
predict_qa_results(
aws_account_id: AwsAccountId,
query_text: QAQueryText,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = 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/async_quick_sight.py
16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 | |