The following figure depicts the LDA in a nutshell:
There are two approaches to document analysis. We can simply use matrix factorization to decompose a large matrix of datasets to a smaller matrix (topic assignments) times a vector (topics themselves):