Skip to content

Commit

Permalink
fix: modify params on ollama granite cookbook (#260)
Browse files Browse the repository at this point in the history
Signed-off-by: MICHAEL DESMOND <mdesmond@us.ibm.com>
  • Loading branch information
michael-desmond authored Dec 18, 2024
1 parent 56045d6 commit f6e42a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/agents/granite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ ollama serve
Run the [granite_wiki_bee](/examples/agents/granite/granite_wiki_bee.ts) agent:

```shell
yarn run start examples/agents/granite/granite_wiki_bee.ts <<< "Who were the authors of the paper 'Attention is all you need' and how many citations does it have?"
yarn run start examples/agents/granite/granite_wiki_bee.ts <<< "Who were the authors of the research paper 'Attention is all you need', how many citations does it have?"
```

You will see the agent reasoning, calling the WikipediaTool and producing a final answer similar to the following:
Expand Down
3 changes: 1 addition & 2 deletions examples/agents/granite/granite_wiki_bee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ const llm = new OllamaChatLLM({
modelId: "granite3.1-dense:8b",
parameters: {
temperature: 0,
num_ctx: 4096,
num_predict: 512,
num_predict: 2048,
},
});

Expand Down

0 comments on commit f6e42a7

Please sign in to comment.