Ollama cheatsheet

Ollama: Commands inside a chat

6 common Ollama tasks.

Change a parameter

Set the sampling temperature for the rest of the session. Lower values give more predictable answers.

/set parameter temperature 0.2

Set a system prompt

Give the model standing instructions for the session.

/set system You are a concise assistant.

Show the model's info

Print information about the current model.

/show info

Save the session as a model

Save the current settings and conversation as a new model.

/save my-assistant

Enter a multi-line prompt

Wrap text in triple quotes to type several lines.

"""
First line
Second line
"""

Leave the chat

Exit the interactive session.

/bye

Was this page helpful?