#(SOLVED) How can I see the full prompt and response to ollama when using it with assist?

1 messages · Page 1 of 1 (latest)

spring ginkgo
#

The title is the question, I'm using llama3.2 with assist and ollama, I would like to see the entire prompt it's given with devices etc, it seems the AI runs multiple times too since it can give errors with devices etc, I would like to see this whole conversation

fiery lava
#

You'd need to check logs on the ollama instance itself

#

May even need to set ollama to debug logging to see that

spring ginkgo
#

So there is no option to see that in home assistant?

#

by using logs in ollama I can see the prompt, can I change some of the stuff in it, or is it impossible to change it

#

the prompt that starts like this:
Use HassTurnOn to lock and HassTurnOff to unlock a lock. When controlling a device, prefer passing just name and domain. When controlling an area, prefer passing just area name and domain.\nWhen a user asks to turn on all devices of a specific type, ask user to specify an area, unless there is only one device of that type.\nThis device is not able to start timers.\nAn overview of the areas and the devices in this smart home:

fiery lava
#

What's the context size on your ollama? Seems like the prompt may be getting truncated

spring ginkgo
#

I only sent part of it

#

if there is no way to change it I'll just close the thread and mark as resolved, since I figured out how to read it anyway

#

so its technically resolved

fiery lava
#

You can change some parts of it in the configuration in the ollama addon, but the stuff you are showing here comes from HA itself, don't think that can be changed without modifying the core HA code itself.

spring ginkgo
#

oh alright, im confused why it says you cannot start a timer

#

seems like an entirely possible thing

fiery lava
#

The device itself must support timers

#

Timers live on the device itself, not in HA

#

So in other words the assist satellites has to have it implemented

spring ginkgo
#

oh alright makes sense, unless some device with a timer had HA integration, as its own device

#

separate from the device assist is being called on

fiery lava
#

Well no

spring ginkgo
#

(SOLVED) How can I see the full prompt and response to ollama when using it with assist?

fiery lava
#

The device assist is summoned on itself has to support timers in it's firmware

spring ginkgo
#

I mean, if I had a device which was a timer, and I told assist to set a timer it could talk to that device

#

just like a light

#

or any other device

fiery lava
#

Not natively, that would require custom changes

spring ginkgo
#

Home assistant can talk to many arbitrary devices

#

It wouldn't be impossible for there to be an integration with a device that has a timer

#

Without modifying home assistant

#

Just like a light is turned on

fiery lava
#

What i mean is, the built in voice commands don't work in that way

spring ginkgo
#

Can voice commands only do preset actions then?

fiery lava
#

You would have to take over them or make your own and redirect them to this other integration or device

#

The voice command in ha for timers assume the timer command is in regard to the device making the request

#

Ie set a timer on the satellite the voice command was issued to, if it supports it.

spring ginkgo
#

So you can't change specific entity states with voice commands

fiery lava
#

Not what i am saying

spring ginkgo
#

This is some random example from mine

#

Could I tell it to press this