-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.md.orig
81 lines (52 loc) · 1.89 KB
/
README.md.orig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# beaker-climate
[![PyPI - Version](https://img.shields.io/pypi/v/beaker-climate.svg)](https://pypi.org/project/beaker-climate)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/beaker-climate.svg)](https://pypi.org/project/beaker-climate)
-----
## Table of Contents
- [Installation](#installation)
- [License](#license)
- [Usage](#usage)
- [Mimi](#mimi)
## Installation
### Docker
```docker-compose up```
This will run Beaker with the contexts installed.
Ensure `.env` is created in the working directory with the correct keys.
### Existing Beaker Installation
```
pip install -e climate-python
pip install -e mimi-api
```
### Manual
```console
# Install Julia
curl -fsSL https://install.julialang.org | sh -s -- -y
export PATH="/root/.julialup/bin:${PATH}"
# Set up Julia environment
julia -e ' \
packages = [ \
"DataSets", "XLSX", "Plots", "Downloads", "DataFrames", "ImageShow", "FileIO", "Mimi", "JSON3", "DisplayAs" \
]; \
using Pkg; \
Pkg.add(packages);'
# Install MimiFUND Julia library
julia -e 'using Pkg; Pkg.add(url="https://github.com/fund-model/MimiFUND.jl.git"); using MimiFUND'
# install beaker-climate contexts
pip install -e climate-python
pip install -e mimi-julia
export OPENAI_API_KEY=your key here
export GEMINI_API_KEY=your key here
```
Run with `beaker notebook`
## Usage
### Mimi
Inside the `mimi_api` context, Mimi integrated assessment models can be used.
**MimiFUND**:
Example questions for the agent:
> "What is a FUND model?"
> "How do FUND models calculate social cost?"
> "What parameters matter in calculating the social cost of CO2?"
> "Can you calculate the social cost of CH4 starting at the year 1995?"
> "Can you calculate the social cost of CO2 with n = 5 monte carlo simulations and plot the result?"
## License
`beaker-climate` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.