libraries/botbuilder-ai/botbuilder/ai/qna/qnamaker.py
async def get_answers(
        self, 
        context: TurnContext, 
        options: QnAMakerOptions = None, 
        telemetry_properties: Dict[str,str] = None,
        telemetry_metrics: Dict[str,int] = None
    ) -> [QueryResult]:
        """
        Generates answers from the knowledge base.
        
        :return: A list of answers for the user's query, sorted in decreasing order of ranking score.
        
        :rtype: [QueryResult]
        """


        hydrated_options = self._hydrate_options(options)
        self._validate_options(hydrated_options)
        
        result = self._query_qna_service(context.activity, hydrated_options)
        
        await self._emit_trace_info(context, result, hydrated_options)

        return result
async def get_answers(
        self, 
        context: TurnContext, 
        options: QnAMakerOptions = None, 
        telemetry_properties: Dict[str,str] = None,
        telemetry_metrics: Dict[str,int] = None
    ) -> [QueryResult]:
        """
        Generates answers from the knowledge base.
        
        :return: A list of answers for the user's query, sorted in decreasing order of ranking score.
        
        :rtype: [QueryResult]
        """


        hydrated_options = self._hydrate_options(options)
        self._validate_options(hydrated_options)
        
        result = self._query_qna_service(context.activity, hydrated_options)
        
        await self._emit_trace_info(context, result, hydrated_options)

        return result
Generates answers from the knowledge base.
        
        :return: A list of answers for the user's query, sorted in decreasing order of ranking score.
        
        :rtype: [QueryResult]