Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an interactive execution mode #34

Merged
merged 5 commits into from
Mar 29, 2023
Merged

Add an interactive execution mode #34

merged 5 commits into from
Mar 29, 2023

Conversation

rlouf
Copy link
Member

@rlouf rlouf commented Mar 27, 2023

Calls to LLMs can take some time, so it would be nice to have an interactive execution mode where the outputs are displayed as soon as they are available. We use the rich library to be able to add colors to the output (to distinguish human input from LLM-generated text and the different LMs) and do live updates.

  • Write the output of different LLMs in different colors
  • Add a column with a list of LLMs used and the constraints being used
  • Use live updates to display the execution of the program
  • Return the trace when the execution is interrupted so the user can edit it and re-compile
  • Refactor

Partially closes #21. Closes #35. I will open a new issues with an extended design proposal for the more complex UX workflow (where we can interact with the outputs).

Since execution can take some time we would like to display current
progress to the user. We use the `rich` library to show live updates as
the program is being executed.
@rlouf rlouf merged commit 25a5031 into main Mar 29, 2023
@rlouf rlouf deleted the vm-rich-execution branch March 29, 2023 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Name Ops with the name of the variable in the script Add interactive execution mode
1 participant