In simplest terms, a language model just produces the most commonly grouped words around those topics. I use a similar algorithm to detect topics in collections of media documents. ChatGPT is somewhat smarter than that but not fundamentally diffe