A non-transitory computer readable storage medium impressed with computer program instructions to process input from a patient in a particular utterance in a current conversation session, the instructions, when executed on a processor, implement a method comprising, the input including:
- a named relationship, and
- an event involving an entity,
- using the event to infer a sentiment of the patient in the particular utterance towards the entity;
- accessing, an artificial memory graph data structure comprising a patient root and entity nodes connected to the patient root by relationship edges, using the named relationship from the particular utterance, including:
- querying for the named relationship, selecting relationship edges connected to the patient root that are responsive to the query, and extracting a plurality of distinguishing names from entity nodes connected to the patient by the selected relationship edges, and
- sending a prompt to the patient asking the patient to select among the distinguishing names to disambiguate the named relationship and connected entity,
- advancing the conversation by referring to the distinguishing name of the disambiguated entity and the inferred sentiment.