qnli question: Who was the famous astronomer that Avicenna met before he left Khwarezm? sentence: Various texts (such as the 'Ahd with Bahmanyar) show that he debated philosophical points with the greatest scholars of the time.