Set up Chat Notebooks in Wolfram Mathematica using U-M GPT Toolkit

Environment

Wolfram Mathemtica / U-M GPT Toolkit

Issue

How to set up the Wolfram Mathematica integration with U-M GPT Toolkit to access Chat Notebooks.

Resolution

Chat Notebooks are a type of Mathematica notebook that supports generative AI. The primary purpose of chat within Mathematica is to serve as a Code Assistant--i.e., to write, debug, modify, and understand Wolfram Language code.

Before you begin, complete the following:

  1. Create an API Key in U-M GPT Toolkit and save it for later reference.
  2. Open the Wolfram website and download the UMichAzureOpenAIServiceConnection.zip file. Open the file and extract the contents.
  3. Launch the extracted Setup.nb file.
  4. Click Install Azure OpenAI Michigan.
  5. Click Open Chat Notebook.
  6. Click inside the chat box. While holding the Shift key, hit Enter on your keyboard. A dialog box opens.
  7. Enter the API Key you previously generated and a valid, authorized billing Shortcode in the applicable fields.
  8. Click the Save this connection checkbox.
  9. Click Agree and Continue.

You can now use chat within any Mathematica notebook. See additional guidance using Chat Notebooks.

Note that you can change U-M GPT models within the Preferences menu.

Preferences > AI Settings menu showing the Model selection drop-down menu

Additional Information

Request access to U-M GPT Toolkit.

Need additional information or assistance? Contact the ITS Service Center