Skip to content

Commit

Permalink
Add matched intent to Low Conf exception
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jan 15, 2024
1 parent fa67738 commit d61f258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neon_minerva/intent_services/padatious.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_intent(self, utterance: str) -> IntentMatch:
conf = intent.get("conf") or 0.0
if conf < self.min_conf:
raise ConfidenceTooLow(f"{conf} less than minimum {self.min_conf}: "
f"{utterance}")
f"{utterance}. intent={intent}")
skill_id = intent.get('name').split(':')[0]
return IntentMatch('Padatious', intent.get('name'),
intent.get('matches') or intent.get('entities'),
Expand Down

0 comments on commit d61f258

Please sign in to comment.