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

Claim 7:
8. A non-transitory computer-readable medium storing software comprising instructions executable by one or more computers which, upon such execution, cause the one or more computers to use a Hierarchical Recurrent Path Encoder (HRPE) model to control a virtual agent by generating responses to queries received by the virtual agent by performing the following operations:
receive a natural language query;
generate hypothesis based on the received query;
receive, at an attention component of the HRPE model, the hypothesis;
encode, 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 encode, 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;
generate, by the HRPE model, attention weights for each of the first encoding and the second encoding to produce weighted encodings;
select, 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;
determine, via a feed forward network layer of the HRPE model, whether the first vector follows the hypothesis or not;
classify 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
generate, via an inference-based response generation module associated with the HRPE model, a natural language response to the query based on the classification.