These docs are a work in progress.
If you get stuck, please join our Discord and let us know.
Python Setup
Create a virtual environment
Activate the virtual environment
Install AI JSON
aijson-meta
is a metapackage – a shortcut to installing aijson-core
and some common actionpacks.
IDE Setup
Install Visual Studio Code
Follow the instructions on the download page.
Install the AI JSON extension
Click here, or search for AI JSON & AI YAML
in the VSCode marketplace.
Select your virtual environment
- Open the command palette (
Cmd+Shift+P
/ Ctrl+Shift+P
); - Type and select
Python: Select Interpreter
; - Choose the virtual environment you created earlier.
Running an Example
Provide a language model
There’s a guide on using any language model, but to get started you can simply:
Create a .env
file in your project root with the following contents:
Create a .env
file in your project root with the following contents:
Run Ollama locally on port 11434.
Create a .env
file in your project root with the following contents:
Grab an example
Copy one of the following example files in your project, or see example files for more.
Preview the example
- Open the file in VSCode;
- Press
preview
in the top-right corner; - Editing the file, save it, and see the preview update in real-time.
Run the example
Run the example in your code like: