Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
listSearchResults = client.knowledgebase.generate_answer(kb_id, QueryDTO(question = question,top=3))
Need to add top parameter.