Skip to content

Commit

Permalink
update prompt MNQA AR (#343)
Browse files Browse the repository at this point in the history
* update prompt MNQA AR

* fix assistant prompt
  • Loading branch information
AridHasan authored Sep 7, 2024
1 parent a2a681e commit cd5fa7f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions assets/ar/QA/MultiNativQA_Llama3_8b_ZeroShot.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ def prompt(input_sample):

# Define the question prompt
question_prompt = f"""
Please use your expertise to answer the following Arabic question. You should only Answer in Arabic.
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 Arabic question. Answer in Arabic 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 an Arabic 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 an Arabic AI assistant specialized in providing detailed and accurate answers across various fields.
Your task is to deliver clear, concise, and relevant information.
"""

return [
Expand Down

0 comments on commit cd5fa7f

Please sign in to comment.