Skip to content

Commit

Permalink
add info to intent prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhoune committed Nov 25, 2023
1 parent 29e029a commit 49baa57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/llm_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ def recommendations_from_event_log(log):


def recommendations_for_intents(intents_df):
prompt = "Knowing that a confidence score bigger than 0.9 is considered good. \n\n"
prompt = "Knowing that a confidence score bigger than 0.9 is considered good. nlu_fallback describes cases where intents were not recognized. \n\n"
prompt += "Here is a list of intents and the average bot confidence score:\n\n"
for index, row in intents_df.iterrows():
if row['intentKeyword'] is not None:
prompt += f"{row['intentKeyword']}: {row['averageConfidence']}\n"
prompt += "\n\What improvements can be made to the chatbot? Note that the training data is passed to Rasa to train. \n\n"
prompt += "\nWhat improvements can be made to the chatbot? Note that the training data is passed to Rasa to train. \n\n"
prompt += "Format the response as html. Also include the list along with the confidence scores as a table\n\n"
return prompt

Expand Down

0 comments on commit 49baa57

Please sign in to comment.