The GenAISCript Markdown Notebook is currently used to author the GenAIScript documentation.
It allows to run script snippets and inline the result in the markdown just like this:
👤 user🤖 assistant
Edit Markdown as Notebook
The first step is to open the markdown file to edit using the GenAIScript notebook.
In Visual Studio Code, right click on any Markdown (.md) or MDX file (.mdx)
Select Open With…
Select GenAIScript Markdown Notebook
Run snippets
You can run any JavaScript cell by clicking the Run Cell button or pressing Shift+Enter. It will run the code as if it was a GenAIScript script in the workspace.
👤 user🤖 assistant
Page Configuration
You can provide global configuration settings in the front matter. The front matter starts and ends with three dashes --- and is located at the top of the markdown file.
Model, temperature, …
You can specify the LLM configuration metadata from script.
Files
You can specify the files to include in the notebook, as a single entry or an array. Globs are supported.
The files are relative to the workspace root.
The env.files variable is available to reference the files in the notebook.