Closed Gauntlet173 closed 2 years ago
This is specifically visible if you use the Rock Paper Scissors example, and recreate the bobjane test, and then grab the JSON payload by using JSON.stringify(fact_data)
, and run it in the /run
endpoint for the who_wins test, with and without the detail about signs in the payload.
The scenario editor is taking data from the
/onto
endpoint for a test, displaying it to the user, allowing the user to specify more facts, and then it is sending both the user facts and the ontology facts back to the server.This seems to be, in some circumstances, creating additional explanations for answers. I don't understand the mechanism by which that is happening, but removing the ontology facts from the JSON payload eliminates the redundant explanations.
We need to have the scenario editor pre-process the data packet so that it doesn't send information that it received from the code.