Furthermore, in the Nyāya-Vaiśeṣika school God assembles the world (from atoms), but in Sāṅkhya-Yoga he is inactive, since he is a form of Puruṣa (inert spiritual force).
In yogic philosophy, God’s main purpose seems to be to bring together Prakṛti and Puruṣa so the universe (and the individual) can evolve towards spiritual realization.
In this sense, God is a kind of idealized spiritual being—in effect, the spiritually emancipated man, or Puruṣa—which serves as a model for humanity.
Similarly, the spiritual guru is a God-like ideal being that is a model for people aspiring for spiritual emancipation to emulate.