Patent ID: 11886821
Assignee: ACCENTURE GLOBAL SOLUTIONS LIMITED
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A computer implemented method of using a Hierarchical Recurrent Path Encoder (HRPE) model to control a virtual agent by generating responses to queries received by the virtual agent, the method comprising:
receiving a natural language query;
generating hypothesis based on the received query;
receiving, at an attention component of the HRPE model, the hypothesis;
encoding, by the HRPE model, a first path in a knowledge graph to generate a first encoding, the first path connecting to a first possible answer to the query;
collectively encoding, by the HRPE model, a first plurality of paths in the knowledge graph to generate a second encoding, the first plurality of paths including the first path;
generating, by the HRPE model, attention weights for each of the first encoding and the second encoding to produce weighted encodings;
selecting, by the attention component and based on the hypothesis, an encoding from the weighted encodings based on which encoding is associated with a greater attention weight, the selected encoding corresponding to a first vector;
determining, via a feed forward network layer of the HRPE model, whether the first vector follows the hypothesis or not;
classifying the first vector based on output of the feed forward network layer, the classification indicating whether the selected encoding entails or contradicts the hypothesis; and
generating, via an inference-based response generation module associated with the HRPE model, a natural language response to the query based on the classification.