Enable users to easily create custom note styles or templates intuitively.
Note: "Style" and "template" are used interchangeably.
Background
At present, Sully offers a simple method for creating note styles through a free-form text area. This can be overwhelming due to unclear starting points and the expertise required in prompt design.
Solution
Introduce a user-friendly wizard to guide through template creation. This should be intuitive and support voice input. The design consists of three parts:
Each section converts to an LLMChain for execution, integrating inputs like transcripts and patient charts. All chains execute in parallel, and the results are merged for the final note.
Sully-designed prompts are hosted and versioned on Autoblocks.
Frontend Wizard
An intuitive wizard will help create templates and define sections, saving the resulting JSON in Firebase and GCS.
Note Generation/Execution
Upon recording a visit, users select the note template via dropdown. Only the template ID is sent in requests, and the server constructs the template.
Server-side actions:
Retrieve the template JSON from Firebase using templateId.
Access the template JSON from GCS using templateId or gcsPath.
Process voice-triggered templates from their GCS paths, ready to be converted to an LLMChain.
Template: LLMChain Structure
Section: LLMTask/LLMChain Structure
A section-level LLMChain identifies which template to trigger based on voice prompts and executes necessary tasks sequentially.