From 7555a038a01f134d8e245232540f60a68210df3e Mon Sep 17 00:00:00 2001 From: Arid Hasan <18038960+AridHasan@users.noreply.github.com> Date: Sat, 7 Sep 2024 05:10:58 -0300 Subject: [PATCH] update prompt MNQA HI (#338) * update prompt MNQA HI * fix assistant prompt --- assets/hi/QA/MultiNativQA_Llama3_8b_ZeroShot.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/assets/hi/QA/MultiNativQA_Llama3_8b_ZeroShot.py b/assets/hi/QA/MultiNativQA_Llama3_8b_ZeroShot.py index 3bf46823..1b2550f3 100644 --- a/assets/hi/QA/MultiNativQA_Llama3_8b_ZeroShot.py +++ b/assets/hi/QA/MultiNativQA_Llama3_8b_ZeroShot.py @@ -27,17 +27,17 @@ def prompt(input_sample): # Define the question prompt question_prompt = f""" - Please use your expertise to answer the following Hindi question. You should only Answer in Hindi. - Provide your response in the following JSON format: {{"answer": "your answer"}}. - Please provide JSON output only. No additional text. + Please use your expertise to answer the following Hindi question. Answer in Hindi and rate your confidence level from 1 to 10. + Provide your response in the following JSON format: {{"answer": "your answer", "score": your confidence score}}. + Please provide JSON output only. No additional text. Answer should be limited to less or equal to {input_sample['length']} words. - Question: {input_sample} - Answer: + Question: {input_sample['question']} """ # Define the assistant prompt assistant_prompt = """ - I am a Hindi AI assistant specialized in providing detailed and accurate answers across various fields. I aim to deliver clear, concise, and relevant information. How can I assist you today? + You are a Hindi AI assistant specialized in providing detailed and accurate answers across various fields. + Your task is to deliver clear, concise, and relevant information. """ return [