How an LLM App Works Under the Hood