Skip to content

Commit

Permalink
docs: move examples and notebooks again
Browse files Browse the repository at this point in the history
  • Loading branch information
aleneum committed Feb 4, 2025
1 parent acdac6a commit 62a7854
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 11 deletions.
26 changes: 17 additions & 9 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ If you just want to it try out, you can clone the project and install dependenci
git clone https://github.com/caretech-owl/gerd.git
cd gerd
pip install -e ".[full]"
python docs/examples/hello.py
python examples/hello.py
```

<details>
<summary>Source: examples/hello.py</summary>
```python
--8<-- "examples/hello.py"
```
</details>

If you want to try this out in your browser, head over to binder 👉 [![Binder](media/binder_badge.svg)](https://mybinder.org/v2/gh/caretech-owl/gerd/HEAD?labpath=%2Fnotebooks%2Fhello_gerd.ipynb).
Note that running LLMs on the CPU (and especially on limited virtual machines like binder) takes some time.

Expand All @@ -41,11 +48,10 @@ Click the 'Click to Upload' button and search for a [GRASCCO](https://pubmed.ncb
## Prompt Chaining

Prompt chaining is a prompt engineering approach to increase the 'reflection' of a large language model onto its given answer.
Check [examples/chaining.py](examples/chaining.py) for an illustration.

Check `examples/chaining.py` for an illustration.

``` sh
python docs/examples/chaining.py
python examples/chaining.py
# ...
====== Resolved prompt =====

Expand All @@ -57,14 +63,16 @@ Result: Based on the given information, the largest egg-laying mammal is the blu
```

<details>

<summary>config/gen_chaining.yml</summary>


<summary>Source: examples/chaining.py</summary>
```python
--8<-- "examples/chaining.py"
```
</details>
<details>
<summary>Config: config/gen_chaining.yml</summary>
```yaml
--8<-- "config/gen_chaining.yml"
```

</details>


Expand Down
4 changes: 2 additions & 2 deletions docs/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ uv run router[_dev]

### GitHub Actions

GitHub Actions can be found under [.github/workflows](./.github/workflows/).
There is currently one main CI workflow called `pythin-ci.yml`:
GitHub Actions can be found under [.github/workflows](https://github.com/caretech-owl/gerd/tree/main/.github/workflows).
There is currently one main CI workflow called `python-ci.yml`:

``` yaml
--8<-- ".github/workflows/python-ci.yml"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 62a7854

Please sign in to comment.