The Vedas are based on four branches of knowledge,art,medicine,government and worship.

In the Hindu Epic the Mahabharata, the creation of Vedas is credited to Brahma. The Vedic hymns themselves assert that they were skillfully created by Rishis (sages), after inspired creativity, just as a carpenter builds a chariot. There are four Vedas: the Rigveda, the Yajurveda, the Samaveda and the Atharvaveda. It contains 1,028 hymes and 10,600 verses.

Rig Veda