Skip to content

Intent for simple calculations/math #3078

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jose1711 opened this issue Mar 15, 2025 · 3 comments
Open

Intent for simple calculations/math #3078

jose1711 opened this issue Mar 15, 2025 · 3 comments

Comments

@jose1711
Copy link
Contributor

I'd love to see an intent that would enable queries like "calculate 1580 divided by 3" or "convert 12 cm to inches". This should be possible with some jinja2 templating.

@tetele
Copy link
Contributor

tetele commented Mar 17, 2025

This is not at all simple to achieve. First of all, you have 2 types of intents as examples:

  • a calculation (specifically, a division in your case)
  • a unit conversion

There are 2 issues to overcome here:

  • proper transcription of numbers with decimals in many languages, which works but not great in all languages
  • adding a plethora of ways of saying things for each operation, e.g. "1580 divided by 3", "1580 by 3", "divide 1580 by 3", "1580 over 3" etc. And that's just for division

And then comes the biggest problem of them all: why? You can use a LLM agent which does all that (better or worse, depending on the model). The amount of localization for these operations is quite high and I personally don't think it's worth the hassle. But maybe someone else sees the benefit.

@synesthesiam
Copy link
Contributor

While it would be nice, I consider this kind of thing outside the scope of home control and so not appropriate for this repo.

What I think should be done instead is to create a Wyoming conversation agent that can be expanded with more traditional "skills" like math and unit conversion.

@jose1711
Copy link
Contributor Author

@synesthesiam Thank you, that seems interesting. Are you aware of any example configuration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants