When I tell my assistant to turn on all the fans, it does not. Can I teach the LLM what I want it to do?
To turn on both small fan and big fan in the Den area, I’ll need to specify the area. Please tell me you want to turn on the fans in the Den area. Or, if you have only one device of that type, I can also provide an option to turn on a specific fan. Which one would you like to do?
Not sure if this helps or not…
Natural Language Processing 105.28s ✅
Engine conversation.llama3_2
Language en
Input turn on all the fans
Response type action_done
Prefer handling locally true
Processed locally false
what is the temperature? responds correctly with Here are the current temperatures: Den: 21.1°C (70.2°F) Kitchen: 21.7°C (71.1°F) Outside: 6.99°C (43.48°F) It feels like: 2.69°C (4.86°F)
what is the co2 level responds correctly with The CO2 levels are: - Den: 583 - Kitchen: 697
BUT when I try turn on all fans it does not run the two commands. It just responds with the text Turn on small fan Turn on big fan. It doesn’t actually do two “actions” of Turn on small fan and then Turn on big fanHow do i force two actions within the system prompt? Is there a better way to do this in LLM? So far @LiQuid_cOOled grouping idea seems the most logical.
System Prompt
When asked "what is the co2", respond with
{{ area_name('sensor.aranet4_1fc59_carbon_dioxide') }} is {{ states('sensor.aranet4_1fc59_carbon_dioxide') }}
{{ area_name('sensor.aranet4_15e1a_carbon_dioxide') }} is {{ states('sensor.aranet4_15e1a_carbon_dioxide') }}
when asked "what is the temperature", respond with
{{ area_name('sensor.aranet4_1fc59_temperature') }} is {{ states('sensor.aranet4_1fc59_temperature') }}
{{ area_name('sensor.aranet4_15e1a_temperature') }} is {{ states('sensor.aranet4_15e1a_temperature') }}
{{ area_name('sensor.openweathermap_temperature') }} is {{ states('sensor.openweathermap_temperature') }}
feels like {{ states('sensor.openweathermap_feels_like_temperature') }}
all temperatures should be given in both both Celsius and Fahrenheit.
when asked "turn on all fans" do the following;
respond with "turn on small fan"
respond with "turn on big fan"
when asked "turn off all fans" do the following;
respond with "turn off small fan"
respond with "turn off big fan"