README.md 428 Bytes
Newer Older
1
2
# Bash Shell examples

Matt Williams's avatar
Matt Williams committed
3
When calling `ollama`, you can pass it a file to run all the prompts in the file, one after the other:
Matt Williams's avatar
Matt Williams committed
4

Matt Williams's avatar
Matt Williams committed
5
6
7
`ollama run llama2 < sourcequestions.txt`

This concept is used in the following example.
8
9

## Compare Models
Matt Williams's avatar
Matt Williams committed
10
`comparemodels.sh` is a script that runs all the questions in `sourcequestions.txt` using any 4 models you choose that you have already pulled from the Ollama library or have created locally.