Skip to content

Commit

Permalink
Add utterance to confidence exception
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jan 15, 2024
1 parent d0f8c87 commit 7e1124d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neon_minerva/intent_services/padatious.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def test_intent(self, utterance: str) -> IntentMatch:
raise IntentNotMatched(utterance)
conf = intent.get("conf") or 0.0
if conf < self.min_conf:
raise ConfidenceTooLow(f"{conf} less than minimum {self.min_conf}")
raise ConfidenceTooLow(f"{conf} less than minimum {self.min_conf}: "
f"{utterance}")
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 7e1124d

Please sign in to comment.