Real-time generalized recommendation engine