This paper studies precoding designs to maximize the throughput of millimeter-wave (mmWave) multiple-input multiple-output (MIMO) systems with blocked direct communication paths. Specifically, we enhance MIMO transmissions using reconfigurable intelligent surfaces (RISs), taking into account mmWave characteristics related to line-of-sight (LoS) and multipath effects. To reduce computational complexity, permutation discrete Fourier transform (DFT) vectors are used to design a codebook that incorporates amplitude responses. Furthermore, a trained deep neural network (DNN) is developed to facilitate faster codeword selection. Simulation results demonstrate that the DNN maintains near-optimal spectral efficiency even when the distance between the end user and the RIS changes during the testing phase.