From 30b27eafdef186b6507dc4d7aaa06ca74445fd78 Mon Sep 17 00:00:00 2001 From: fahad_shaikh Date: Fri, 13 Dec 2024 22:04:10 +0530 Subject: [PATCH] intent ranking added --- kairon/nlu/classifiers/llm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kairon/nlu/classifiers/llm.py b/kairon/nlu/classifiers/llm.py index 501b59361..8ad550db3 100644 --- a/kairon/nlu/classifiers/llm.py +++ b/kairon/nlu/classifiers/llm.py @@ -213,7 +213,7 @@ def process(self, messages: List[Message]) -> List[Message]: else: label, reason, entities = self.predict(message.get(TEXT)) intent = {"name": label, "confidence": 1, "reason": reason} - intent_ranking = [] + intent_ranking = [intent.copy()] entities = self.add_extractor_name(entities) message.set("intent", intent, add_to_output=True)