You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+51-2Lines changed: 51 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,9 +50,45 @@ command:
50
50
./bin/ie execute tutorial.md
51
51
```
52
52
53
+
### Install to ~/bin
54
+
55
+
If you want to install the Innovation Engine CLI directly to your home bin directory (so it's available system-wide), use:
56
+
57
+
```bash
58
+
make install-ie-home
59
+
```
60
+
61
+
This will build and install the `ie` binary to `~/bin/ie`. Make sure `~/bin` is in your `$PATH` by adding this to your shell profile:
62
+
63
+
```bash
64
+
export PATH="$HOME/bin:$PATH"
65
+
```
66
+
### Building a Container from Source
67
+
68
+
```bash
69
+
docker build -t ie .
70
+
```
71
+
72
+
Once built you can run the container and connect to it. Innovation Engine will automatically run an introductory
73
+
document when you execute this command.
74
+
75
+
```bash
76
+
docker run -it ie
77
+
```
78
+
79
+
You can override the start command if you want to take control immediately with:
80
+
81
+
```bash
82
+
docker run -it ie /bin/sh
83
+
```
84
+
53
85
## Testing Innovation Engine
54
86
55
-
Innovation Engine is self-documenting, that is all our documentation is written to be executable. Since Innovation Engine can test the actual results of an execution against the intended reslts this means our documentation is also part of our test suite. In our `scripts` folder you will find a `test_ie.sh` script. Running this will run through all of our documentation in test mode.
87
+
Innovation Engine is self-documenting, that is all our documentation is written to be executable. Since Innovation Engine can test the results of an execution against the intended results this means our documentation is also part of our test suite. Testing against all our documentation is easy as:
88
+
89
+
```bash
90
+
make test-docs
91
+
```
56
92
57
93
If you make any changes to the IE code (see Contributing below) we would encourage you to tun the full test suite before issuing a PR.
58
94
@@ -172,14 +208,27 @@ jobs:
172
208
python3 main.py test README.md
173
209
```
174
210
211
+
# Authoring Documents
212
+
213
+
Authoring documents for use in Innovation Engine is no different from writing high quality documentation for reading. However, it does force you to follow good practice and therefore can sometimes feel a little too involved. That is every edge case needs to be accounted for so that automated testing will reliably pass. We are therefore working on tools to help you in the authoring process.
214
+
215
+
These tools are independent of Innovation Engine, however, if you build a container from source they will be included in that container. To use them you will need an Azure OpenAI key (you can use an OpenAI key if you prefer) - be sure to add them in the command below.
216
+
217
+
```bash
218
+
docker run -it \
219
+
-e AZURE_OPENAI_API_KEY=$AZURE_OPENAI_API_KEY \
220
+
-e AZURE_OPENAI_ENDPOINT=$AZURE_OPENAI_ENDPOINT \
221
+
ie /bin/sh -c "python AuthoringTools/ada.py"
222
+
```
223
+
175
224
## Contributing
176
225
177
226
This is an open source project. Don't keep your code improvements,
178
227
features and cool ideas to yourself. Please issue pull requests
179
228
against our [GitHub repo](https://github.com/Azure/innovationengine).
180
229
181
230
Be sure to use our Git pre-commit script to test your contributions
182
-
before committing, simply run the following command: `python3 main.py test test`
231
+
before committing, simply run the following command: `make test-docs`
183
232
184
233
This project welcomes contributions and suggestions. Most
185
234
contributions require you to agree to a Contributor License Agreement
0 commit comments