Set Session System Message: Ollama

Tutorial: Set Session System Message in Ollama CLI

Ingrid Stevens
3 min readDec 22, 2023

All of my stories are free to read. If you don’t have a Medium subscription you can still read by clicking this link. ❤️

For the purpose of this tuorial, I’ll assume you have already installed the Ollama application and also have at least one model installed.

First, let’s take a look at what commands we have available in Ollama:

Run Ollama help to see the available commands

ollama help
ollama help

Run Ollama list to see the models you have installed

Choose a Model to Set the System Prompt

First, we need to see what the system prompt is. For this, I’ve chosen dolphin-mixtral.

Now, I’ll look at the system prompt using the --system flag

ollama show dolphin-mixtral:8x7b-v2.5-q2_K --system

Run the Model to Access Settings

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in