Understanding LLMs and their applications