Skip to content

Commit

Permalink
Updates use example to use temperature properly
Browse files Browse the repository at this point in the history
  • Loading branch information
edgararuiz committed Oct 23, 2024
1 parent 2e41a87 commit 76aa6c6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions _freeze/reference/MallFrame/execute-results/html.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions python/mall/polars.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ def use(self, backend="", model="", _cache="_mall_cache", **kwargs):
```{python}
# Additional arguments will be passed 'as-is' to the
# downstream R function in this example, to ollama::chat()
reviews.llm.use("ollama", "llama3.2", seed = 100, temperature = 0.1)
reviews.llm.use("ollama", "llama3.2", options = dict(seed = 100, temperature = 0.1))
```
```{python}
# During the Python session, you can change any argument
# individually and it will retain all of previous
# arguments used
reviews.llm.use(temperature = 0.3)
reviews.llm.use(options = dict(temperature = 0.3))
```
```{python}
Expand Down
4 changes: 2 additions & 2 deletions reference/MallFrame.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,14 @@ interact with the LLM.
```{python}
# Additional arguments will be passed 'as-is' to the
# downstream R function in this example, to ollama::chat()
reviews.llm.use("ollama", "llama3.2", seed = 100, temp = 0.1)
reviews.llm.use("ollama", "llama3.2", options = dict(seed = 100, temperature = 0.1))
```

```{python}
# During the Python session, you can change any argument
# individually and it will retain all of previous
# arguments used
reviews.llm.use(temp = 0.3)
reviews.llm.use(options = dict(temperature = 0.3))
```

```{python}
Expand Down
1 change: 1 addition & 0 deletions site/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ To re-create the reference files, and capture the possibly new output from
the resulting Quarto files, use the following steps:

```bash
uv pip install python/
rm -rf _freeze/reference
R -e 'pkgsite::write_reference()'
quartodoc build --verbose
Expand Down

0 comments on commit 76aa6c6

Please sign in to comment.