Implement a source code editor instead of using a HTML contenteditable DIV for the model editor.
Reasoning: Validating, writing, and reading JSON is challenging with no styling. A source code editor can help with this. In addition, it can be used for future source-code related features - like code execution, source code modification, etc.
Files:
frontend/pages/models.tsx (modify the contenteditable pre tag)
Idea: Test data can be a JSON object with attributes as variable names. These attributes can map to to prompt variables. This would allow engineers to quickly test a dataset to see how well a certain prompt/model is performing.
This may require the following:
a new database table for datasets
a new REST API to retrieve, edit, and delete a dataset and their items.
a new page on the front-end that lists datasets available.