From c14f537180f199e180d0bacc63a93c53bfe56357 Mon Sep 17 00:00:00 2001 From: Fahad Ali Shaikh Date: Mon, 16 Dec 2024 09:43:39 +0530 Subject: [PATCH] intent ranking added (#1656) --- 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)