This application proposes a man-
machine dialogue method, device, storage medium, and 
computer program product, wherein the method includes: determining the current dialogue topic and the user's current 
utterance information; determining the user's current 
utterance representation vector according to the current 
utterance information; combining the current utterance  Information and the current discourse representation vector, perform graph reasoning calculation on the heterogeneous 
knowledge graph corresponding to the current dialogue topic, select the current knowledge corresponding to the current discourse information from the heterogeneous 
knowledge graph; according to the current discourse information and current knowledge, generate the current 
sentence corresponding to  Reply sentences, among them, the heterogeneous 
knowledge graph is created based on structured knowledge and unstructured knowledge, and can generate rich reply sentences. In addition, the use of graph reasoning algorithms can improve the accuracy of knowledge selection, making the knowledge selection process  It has good 
interpretability and good generalization ability, and at the same time, reduces the dependence of the overall solution on labeled corpus.