-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Adapt intent matches not returned to core in confidence order. #2947
Conversation
Hello @chrisveilleux! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-07-08 19:31:10 UTC |
isnt this handled by MycroftAI/adapt#137 ? merging that and bumping adapt seems like a better fix no? |
I am not entirely sure the code in that PR fixes this issue. |
7a5b51a
to
f07c80f
Compare
Codecov Report
@@ Coverage Diff @@
## dev #2947 +/- ##
==========================================
- Coverage 52.65% 52.64% -0.01%
==========================================
Files 123 123
Lines 11023 11024 +1
==========================================
Hits 5804 5804
- Misses 5219 5220 +1
Continue to review full report at Codecov.
|
@chrisveilleux can you clarify what edge cases you think MycroftAI/adapt#137 does not address? happy to add tests to confirm/fix. |
Voight Kampff Integration Test Failed (Results). |
I will try to give an example in the Adapt PR. |
Closing this PR. I believe the issue was fixed with Adapt PR 128. The parse confidence passed to I tested the scenario that caused me to generate this PR and it is no longer an issue. A great example of why you should never mess with the value of a parameter in a method or function. |
Description
The AdaptService in core assumes that the highest confidence intent match will be the first result returned from Adapt. This is not always the case. It is possible that Adapt should be ordering the return value instead. But that would be a bigger change to Adapt.
NOTE: this replaces PR2915
How to test
Contributor license agreement signed?
CLA [Y]