From 3ff07529ac055648be845e69928b701b1efacf2b Mon Sep 17 00:00:00 2001 From: chiranjeevi Date: Wed, 5 Jun 2024 12:07:55 +0530 Subject: [PATCH 1/2] Updated the system message --- src/helper/followup_question_gen.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/helper/followup_question_gen.py b/src/helper/followup_question_gen.py index 95cd2db..1dfded1 100644 --- a/src/helper/followup_question_gen.py +++ b/src/helper/followup_question_gen.py @@ -13,8 +13,9 @@ def __init__(self, model="meta-llama/Llama-3-70b-chat-hf", max_tokens=500): ) self.template = """Imagine yourself as the user, adept at generating follow-up questions based on the provided questions {user_question}. Generally, users inquire about the WaveMaker low-code platform and its technical aspects and Try to generate the questions based on the type of intent. - Aim to create 5 questions that will motivate the user to request a demo, with each question approximately 20 characters long. - Make sure only return the questions in the list with double inverted commas are returned, separated by commas within square brackets without adding any sentences in the beginning. + Aim to create 2 questions that will motivate the user to request a demo, with each question approximately 20 characters long. + Make sure that ONLY return the questions in the list with double inverted commas, separated by commas within square brackets without adding any sentences in the beginning. + I will get fired if you don't return LIST with DOUBLE inverted commas, separated by commas within SQUARE brackets. """ self.prompt = PromptTemplate( template=self.template, From d481305f3fc600552db6e1515c0fdd9c6c5795f7 Mon Sep 17 00:00:00 2001 From: chiranjeevi Date: Wed, 5 Jun 2024 16:34:14 +0530 Subject: [PATCH 2/2] system msg update --- src/helper/followup_question_gen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helper/followup_question_gen.py b/src/helper/followup_question_gen.py index 1dfded1..ffebb1e 100644 --- a/src/helper/followup_question_gen.py +++ b/src/helper/followup_question_gen.py @@ -13,9 +13,9 @@ def __init__(self, model="meta-llama/Llama-3-70b-chat-hf", max_tokens=500): ) self.template = """Imagine yourself as the user, adept at generating follow-up questions based on the provided questions {user_question}. Generally, users inquire about the WaveMaker low-code platform and its technical aspects and Try to generate the questions based on the type of intent. - Aim to create 2 questions that will motivate the user to request a demo, with each question approximately 20 characters long. + Aim to create "2 QUESTIONS" that will motivate the user to request a demo, with each question approximately 20 characters long. Make sure that ONLY return the questions in the list with double inverted commas, separated by commas within square brackets without adding any sentences in the beginning. - I will get fired if you don't return LIST with DOUBLE inverted commas, separated by commas within SQUARE brackets. + I will be fired if you don't return a LIST with DOUBLE inverted commas, and if the list of questions is greater than 2. """ self.prompt = PromptTemplate( template=self.template,