Update retrieve_bot.py
Browse files- retrieve_bot.py +1 -1
retrieve_bot.py
CHANGED
@@ -44,7 +44,7 @@ class ChatBot:
|
|
44 |
utterance, self.ranking_model, contexts=self.conversation_history
|
45 |
)
|
46 |
bot_cosine_scores = cosine_sim(self.vect_data, query_encoding)
|
47 |
-
top_scores, top_indexes = top_candidates(bot_cosine_scores, top=
|
48 |
|
49 |
# test candidates and collects them with label 0 to dictionary
|
50 |
|
|
|
44 |
utterance, self.ranking_model, contexts=self.conversation_history
|
45 |
)
|
46 |
bot_cosine_scores = cosine_sim(self.vect_data, query_encoding)
|
47 |
+
top_scores, top_indexes = top_candidates(bot_cosine_scores, top=5)
|
48 |
|
49 |
# test candidates and collects them with label 0 to dictionary
|
50 |
|