The ReQAP Method
Demo coming soon!
Question answering over mixed sources, like text and tables, has been advanced by verbalizing all contents and encoding it with a language model. A prominent case of such heterogeneous data is personal information: user devices log vast amounts of data every day, such as calendar entries, workout statistics, shopping records, streaming history, and more. Information needs range from simple look-ups to queries of analytical nature. The challenge is to provide humans with convenient access with small footprint, so that all personal data stays on the user devices.
We present ReQAP, a novel method that creates an executable operator tree for a given question, via recursive decomposition. Operators are designed to enable seamless integration of structured and unstructured sources, and the execution of the operator tree yields a traceable answer.
Code
GitHub link to ReQAP code
Directly download ReQAP code
Example
ReQAP operates in two stages:
(i) the
question understanding and decomposition (QUD) for constructing an executable operator tree,
and (ii) the
operator tree execution (OTX) stage for deriving the answer with the relevant user events.
Further details can be found in our paper.
The figure below visualizes the answering process of ReQAP for the question
"How often did I eat Italian food after playing football":