Here are a few things you need to do to deal with them:
Makkhan maro: Keep them thinking that they are indeed wise beings, at the cost of their delusion.
GIGO: Take the ‘Garbage in garbage out’ model of listening to their gyan and then letting it out of the other ear.
Quote them back: Nothing will make these gyanis keep (temporarily) quiet as effectively as when you quote them back their own words. Making up quotes and ascribing them will also do.
Titular tel: While adding ‘sir’ and ‘ma’am’ each time you address them after their names are de rigueur, there’s no harm in going a notch up by adding a ‘O’ also before their name, calling them things like ‘visionary’ and ‘supreme’ Being teacher’s pet is understandably frowned upon. But thankfully, not when everyone is vying for that position.
Best of luck.