This post will require some familiarity with ‘Patanjali’s yoga sutras’.
Referring to the terminology from the eight-fold path,
I’ve understood that all real knowledge is from ‘Samyama’,
Which is a combination of ‘Pratyahara + Dharana + Dhyana + Samadhi (union)’.
It is ‘Knowing by Being’ or ‘Knowing by Union-ing’ vs. ‘Knowing by Doing’.
You know everything through ‘direct absorption’ with the object.
In Vedanta, all knowledge is from:
‘Phala vyakti’ shining on ‘Vritti vyakti’.
That is ‘Reflected consciousness’ shining on ‘Modification of the mind stuff’.
We think objects exist external to us,
But in reality, everything that we know appears within us as a modification of our mind stuff.
So union-ing with the object is to union with the Vritti (mind-modification) of your own mind substance.
There is tons and tons more to say on this topic,
But I’ll leave this here as an introduction or segway.