From 7e1124d6226e4cc1bd16d608089a3e629290a9be Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Mon, 15 Jan 2024 15:21:36 -0800 Subject: [PATCH] Add utterance to confidence exception --- neon_minerva/intent_services/padatious.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neon_minerva/intent_services/padatious.py b/neon_minerva/intent_services/padatious.py index 95c3999..573e645 100644 --- a/neon_minerva/intent_services/padatious.py +++ b/neon_minerva/intent_services/padatious.py @@ -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'),