(subject)
| 51 | def generate_few_shot_prompt(k, subject, dev_df): |
| 52 | |
| 53 | def format_subject(subject): |
| 54 | l = subject.split("_") |
| 55 | s = "" |
| 56 | for entry in l: |
| 57 | s += " " + entry |
| 58 | return s.strip() |
| 59 | |
| 60 | # Use llama2 template to generate answer |
| 61 | prompt = f"The following is a multiple-choice question about {format_subject(subject)}. Please choose the most suitable one among A, B, C and D as the answer to this question." |
no outgoing calls
no test coverage detected