Skip to content

Commit

Permalink
intent ranking added (#1656)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfahad1414 authored Dec 16, 2024
1 parent e7ae941 commit c14f537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kairon/nlu/classifiers/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c14f537

Please sign in to comment.