MCPcopy Create free account
hub / github.com/SkyworkAI/Skywork / format_subject

Function format_subject

eval/evaluate_mmlu.py:49–54  ·  view source on GitHub ↗
(subject)

Source from the content-addressed store, hash-verified

47
48def generate_few_shot_prompt(k, subject, dev_df):
49 def format_subject(subject):
50 l = subject.split("_")
51 s = ""
52 for entry in l:
53 s += " " + entry
54 return s.strip()
55
56 prompt = "The following are multiple choice questions (with answers) about {}.\n\n".format(
57 format_subject(subject)

Callers 1

generate_few_shot_promptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected