Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update prompt MNQA TR #342

Merged
merged 2 commits into from
Sep 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions assets/tr/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 Turkish question. You should only Answer in Turkish.
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 Turkish question. Answer in Turkish 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 Turkish 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 Turkish 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
Loading