patchwork
patchwork copied to clipboard
Command-line recursive question-answering with immutable contexts and explicit data store
There are several places in the code where a `Context` is constructed from datastore contents like this: ```python all_successors = [Context(args[0], db, args[1], parent=args[2]) for args in answer_successors + workspace_successors]...
For exercising Patchwork with random inputs. Implementation notes: - I don't know if the code involving threading is correct. - Leave many TODOs, because doing them would good, but isn't...
Exhibit 1: ``` What is your root question? > Question: [$1: ] Scratchpad: [$1: ] Subquestions: > ``` Exhibit 2: ``` What is your root question? > What is the...
``` What is your root question? > What is your favourite colour? Question: [$1: What is your favourite colour?] Scratchpad: [$2: ] Subquestions: > ask What is your favourite colour?...
Don't try to understand the title. Look at this scenario instead: ``` What is your root question? > Who wrote Gödel, Escher, Bach? Question: [$1: Who wrote Gödel, Escher, Bach?]...
As a result, we can't unroll the history of workspaces by expanding subquestion workspace pointers such as `$w1`.