Patent ID: 11947578
Assignee: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G  Y | IPC G

Claim 0:
1. A method for retrieving a multi-turn dialogue, comprising:
obtaining present question information and context information of the present question information;
obtaining a plurality of pieces of candidate reply information of the present question information;
generating a context feature based on the context information, and generating a plurality of candidate reply features based on the plurality of pieces of candidate reply information;
inputting the context feature and the plurality of candidate reply features into a consistency matching model to generate consistency information between the context feature and each of the plurality of candidate reply features; and
selecting a piece of candidate reply information from the plurality of pieces of candidate reply information for replying based on the consistency information between the context feature and each of the plurality of candidate reply features;
wherein the consistency matching model is trained by:
obtaining a dialogue knowledge database;
selecting a plurality of sample question-answer pairs from the dialogue knowledge database based on sample candidate reply information, wherein the sample question-answer pair comprises sample context information and sample reply information;
generating target consistency information based on the sample reply information and the sample candidate reply information;
inputting the sample context information and the sample candidate reply information into the consistency matching model to generate prediction consistency information; and
training the consistency matching model based on the prediction consistency information and the target consistency information.