From neural networks to large language models