MCPcopy Create free account
hub / github.com/FusionBrainLab/SONAR-LLM / get_message_2

Function get_message_2

gpt_eval.py:66–91  ·  view source on GitHub ↗
(gpt_eval, messages)

Source from the content-addressed store, hash-verified

64
65
66def get_message_2(gpt_eval, messages):
67 task_prompt_2 = f"""Now, grade the student's story in terms of grammar, creativity, consistency and
68whether the plot makes sense. Moreover, please provide your best guess of what the age of the student might be,
69as reflected from the completion. Choose from possible age groups: A: 3 or under. B: 4-5. C: 6-7. D: 8-9. E:
7010-12. F: 13-16.
71The output should be in the following format:
72Grammar: 8/10
73Creativity: 7/10
74Consistency: 7/10
75Plot: 6/10
76Age group: E (10-12)
77It should not be any extra explanation included."""
78
79 messages_part_2 = [
80 {
81 "role": "assistant",
82 "content": gpt_eval,
83 },
84 {
85 "role": "user",
86 "content": task_prompt_2,
87 },
88 ]
89
90 messages.extend(messages_part_2)
91 return messages
92
93
94def get_eval_prompt_1(story_prompt, generated_answer):

Callers 1

get_eval_prompt_2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected