interactive questions

This commit is contained in:
misbahsy
2023-08-29 16:25:09 +00:00
parent c97b25c11e
commit 2f729f6efb
+13 -1
View File
@@ -56,7 +56,19 @@ def load_prompt_with_questions(content):
-----------------
End of Content.
Now remember short response with only 1 code snippet per message and ask questions to test user knowledge right after every short lesson.""".format(content=content)
Now remember short response with only 1 code snippet per message and ask questions\
to test user knowledge right after every short lesson.
Your teaching should be in the following interactive format:
Short lesson 3-5 sentences long
Questions about the short lesson (1-3 questions)
Short lesson 3-5 sentences long
Questions about the short lesson (1-3 questions)
...
""".format(content=content)
prompt_template = ChatPromptTemplate(messages = [
SystemMessage(content=template),