Open jlpouffier opened 1 month ago
Hey there @home-assistant/core, @synesthesiam, mind taking a look at this issue as it has been labeled with an integration (conversation
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
conversation documentation conversation source (message by IssueLinks)
Hey there @balloob, @synesthesiam, mind taking a look at this issue as it has been labeled with an integration (assist_pipeline
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
assist_pipeline documentation assist_pipeline source (message by IssueLinks)
This is surprising to me. Sentences with more literal text chunks matched are prioritized, so I would expect the text matched by the wildcard to be less. I will need to test this more and figure out what's happening.
The problem
The sentences to add items to a
todo
list in French are complex: https://github.com/home-assistant/intents/blob/main/sentences/fr/todo_HassListAddItem.yamlThis is because the article that a French speaker puts in front of the item to add (And before the
add
verb) depends on if the article is masculine, feminine, countable or not, plural or not.So if a user wants to add
Milk
Flour
Eggs To his shopping list, he will say
Ajoute
dulait
a la liste des coursesAjoute
de lafarine
a la liste des coursesAjoute
desoeufs
a la liste des coursesThe sentences created long ago worked well in
core-2024.5.5
, as shown in this screenshot:You can see the different articles being ignored, and the correct item being added to the list. (NOTE: I just rolled back to confirm this behavior)
Since 2024.6 (I am currently on
core-2024.6.0b5
, it is not the case anymore. The different articles are now matched with the item, as shown in this screenshot:I think this is due to a change in how the literal chunks of text are prioritized in our matching logic.
@synesthesiam: Is this a problem in our logic? Or should we change our sentences?
Thx a lot
What version of Home Assistant Core has the issue?
core-2024.6.0b5
What was the last working version of Home Assistant Core?
core-2024.5.5
What type of installation are you running?
Home Assistant OS
Integration causing the issue
assist_pipeline
Link to integration documentation on our website
https://www.home-assistant.io/integrations/assist_pipeline/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response