Physics-informed machine learning of the correlation functions in bulk fluids