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
16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 | |