@@ -71,7 +71,8 @@ public function test_generate_question(): void {
7171 $ this ->assertEquals ($ presetjson ->primer , $ questionobject ->primer );
7272 $ this ->assertEquals ($ presetjson ->instructions , $ questionobject ->instructions );
7373 $ this ->assertEquals ($ presetjson ->example , $ questionobject ->example );
74- $ expectedstoryprompt = 'Create a question about the following topic. Use your own training data to generate it: " ' .
74+ $ expectedstoryprompt = '\n\n## QUESTION GENERATION MODE - TOPIC\n ' .
75+ 'Create a question about the following topic. Use your own training data to generate it: " ' .
7576 $ dataobject ->story . '" ' ;
7677 $ this ->assertEquals ($ expectedstoryprompt , $ questionobject ->storyprompt );
7778 $ this ->assertEmpty ($ questionobject ->questiontextsinqbankprompt );
@@ -110,7 +111,8 @@ public function test_generate_question(): void {
110111 $ this ->assertEquals ($ presetjson ->primer , $ questionobject ->primer );
111112 $ this ->assertEquals ($ presetjson ->instructions , $ questionobject ->instructions );
112113 $ this ->assertEquals ($ presetjson ->example , $ questionobject ->example );
113- $ expectedstoryprompt = 'Create a question about the following topic. Use your own training data to generate it: " ' .
114+ $ expectedstoryprompt = '\n\n## QUESTION GENERATION MODE - TOPIC\n ' .
115+ 'Create a question about the following topic. Use your own training data to generate it: " ' .
114116 $ dataobject ->story . '" ' ;
115117 $ this ->assertEquals ($ expectedstoryprompt , $ questionobject ->storyprompt );
116118 $ this ->assertStringContainsString ('The question that will be generated by you has to be different '
@@ -133,7 +135,7 @@ public function test_generate_question(): void {
133135 $ this ->assertEquals ($ presetjson ->primer , $ questionobject ->primer );
134136 $ this ->assertEquals ($ presetjson ->instructions , $ questionobject ->instructions );
135137 $ this ->assertEquals ($ presetjson ->example , $ questionobject ->example );
136- $ expectedstoryprompt = 'Create a question from the following contents. '
138+ $ expectedstoryprompt = '\n\n## QUESTION GENERATION MODE - COURSE CONTENTS\nCreate a question from the following contents. '
137139 . 'Only use this content and do not use any training data: " ' . $ dataobject ->story . '" ' ;
138140 $ this ->assertEquals ($ expectedstoryprompt , $ questionobject ->storyprompt );
139141 $ this ->assertEmpty ($ questionobject ->questiontextsinqbankprompt );
@@ -148,7 +150,7 @@ public function test_generate_question(): void {
148150 $ this ->assertEquals ($ presetjson ->primer , $ questionobject ->primer );
149151 $ this ->assertEquals ($ presetjson ->instructions , $ questionobject ->instructions );
150152 $ this ->assertEquals ($ presetjson ->example , $ questionobject ->example );
151- $ expectedstoryprompt = 'Create a question from the following contents. '
153+ $ expectedstoryprompt = '\n\n## QUESTION GENERATION MODE - COURSE CONTENTS\nCreate a question from the following contents. '
152154 . 'Only use this content and do not use any training data: " ' . $ dataobject ->story . '" ' ;
153155 $ this ->assertEquals ($ expectedstoryprompt , $ questionobject ->storyprompt );
154156 $ this ->assertEmpty ($ questionobject ->questiontextsinqbankprompt );
0 commit comments