Skip to main content
. 2024 Oct 26;24(21):6878. doi: 10.3390/s24216878
Algorithm 1 Formulating FARR Step Question

Input: JSON file containing a list of findings, actions, reasonings, and results (Machine_X_FARR_flow.json)

Output: Suggested next action from inference model

      Load Machine_X_FARR_flow.json

      Parse JSON content into FARRflow list of dictionaries

      Initialize all_findings as an empty string

      for each flow in FARRflow do

         current_findingsflow[“Findings”]

         current_resultflow[“Result”]

         question_prompt ← “Below are my current findings:

         all_findings

         current_findings

         What is the most likely action to do next? Answer with one specific action only, not more than that.”

         model_outputinference_model(question_prompt)

         all_findingsall_findings + “

         current_findings, current_result

      end for

      Return model_output as the model suggested action