This M.Y. question suggests that a Talmid Chacham should distance himself from an am ha'aretz - an ignoramus.
While Avraham was not a rabbi, he would probably be considered a Talmid Chacham in the literal sense of the term, which means a "wise student". He was wise, and he was always learning new things, and improving himself, his behavior and his observance of G-d's commandments, etc.
With that idea, it seems puzzling that the Torah says in Breishit 23:7
ויקם אברהם וישתחו לעם הארץ
Abraham rose and bowed down to the ignoramuses
If Abraham was a Talmid Chacham, how could he even be near them, let alone bow down to them in gratitude?
a Talmid Chacham in the literal sense of the term, which means a "wise student".
Actually the term means, 'a student of a wise one'.