This repository contains Chatbook, a paclet adding support for LLM-powered notebooks to Wolfram.
To start using Chatbook, install this paclet by evaluating:
PacletInstall[ResourceObject["Wolfram/Chatbook"]]
which will install the Wolfram/Chatbook paclet resource.
Once installed, start using Chatbook by first creating an empty notebook,
and then selecting the Format > Stylesheet > Chatbook
menu item to change
the notebook stylesheet.
Create new chat input cells by either:
-
Selecting the
Format > Style > ChatUserInput
menu item. -
Typing
'
when the cursor is in-between cells, or as the first character in an Input cell.
Before you can perform chat queries, you must specify your OpenAI API key by performing the following evaluation:
SystemCredential["OPENAI_API_KEY"] = "<YOUR KEY>"
where <YOUR_KEY>
is a valid OpenAI API key.
Note: This credential is the same as that used by the ChristopherWolfram/OpenAILink paclet.
Wolfram code in the chat output can be evaluated in place immediately:
Licensed under the MIT license (LICENSE-MIT or https://opensource.org/license/MIT/)
See Development.md for instructions on how to perform common development tasks when contributing to this project.