I know that currently, the system prompt is not customizable with the Ollama integration. However, I can't even seem to find where it's defined. I looked in the code, but coulddn't find it: https://github.com/home-assistant/core/tree/master/homeassistant/components/ollama
#Where is the system prompt for Ollama defined?
1 messages · Page 1 of 1 (latest)
You mean this? https://github.com/home-assistant/core/blob/a5913147e74f3f4675ed771222418555e82b477d/homeassistant/helpers/llm.py#L64
This is configurable in the Ollama service config: https://my.home-assistant.io/redirect/integrations/
No, the rest of the prompt
The part that lists the available devices, tools, current date, etc.
That file should have all that. For example here: https://github.com/home-assistant/core/blob/a5913147e74f3f4675ed771222418555e82b477d/homeassistant/helpers/llm.py#L396
I wouldn't call this a system prompt.
yup that's it, thanks. Sucks that it's not customizable.
Why wouldn't you call it a system prompt - isn't it exactly what it is?
I understand this to be a system prompt
System prompts are a set of instructions, guidelines, and contextual information provided to AI models before they engage with user
This for example: https://github.com/home-assistant/core/blob/a5913147e74f3f4675ed771222418555e82b477d/homeassistant/helpers/llm.py#L347
Or this: https://github.com/home-assistant/core/blob/a5913147e74f3f4675ed771222418555e82b477d/homeassistant/helpers/llm.py#L333
yes, that's what it is. the functions you linked are all combined into the final system prompt
Oh. My bad then.