There is a huge literature modelling the yield curve. For instance, the affine term structure literature, both in continuous and in discrete time, has many models with different factors, models that have micro foundations, pure forecasting models, etc.
What would be your favorite textbook when it comes to interest rate modelling and its connections to macroeconomics? Suppose you're picking a book to teach a PhD-level class with it.