Skip to content

Commit

Permalink
fixed uncalled await
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalego committed Aug 4, 2024
1 parent 30e6036 commit 148c8f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wafl/answerer/answerer_implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,5 +165,5 @@ def add_memories_to_facts(facts: str, memories: List[str]) -> str:

def select_best_rules_using_entailer(conversation: Conversation, rules_as_strings: List[str], entailer: Entailer, num_rules: int) -> str:
query_text = conversation.get_last_speaker_utterance("user")
rules_as_strings = sorted(rules_as_strings, key=lambda x: entailer.get_score(query_text, x), reverse=True)
rules_as_strings = sorted(rules_as_strings, key=lambda x: await entailer.get_score(query_text, x), reverse=True)
return rules_as_strings[:num_rules]

0 comments on commit 148c8f3

Please sign in to comment.