How ancient Indian sages documented their knowledge