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

Function get_message_1

gpt_eval.py:39–63  ·  view source on GitHub ↗
(story_prompt, generation)

Source from the content-addressed store, hash-verified

37
38
39def get_message_1(story_prompt, generation):
40 system_prompt = """Please act as an impartial judge and grade the student's completion in terms of grammar, creativity, consistency with the story's beginning and
41whether the plot makes sense."""
42
43 task_prompt_1 = f"""There is the following exercise, the student is given a beginning of a story. The student needs to complete it into a full story.
44The exercise tests the student's language abilities and creativity. The symbol *** marks the separator between the
45prescribed beginning and the student's completion:
46
47{story_prompt}***{generation}
48
49Please provide your short general assessment (3-4 sentences) about the part written by the student (the one after the *** symbol).
50Is it gramatically correct? Is it consistent with the beginning of the story? Pay special attention to whether the
51student manages to complete the sentence which is split in the middle by the separator ***."""
52
53 messages = [
54 {
55 "role": "system",
56 "content": system_prompt,
57 },
58 {
59 "role": "user",
60 "content": task_prompt_1,
61 },
62 ]
63 return messages
64
65
66def get_message_2(gpt_eval, messages):

Callers 1

get_eval_prompt_1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected