mirror of
https://github.com/langchain-ai/langchain-teacher.git
synced 2026-07-01 15:19:06 -04:00
interactive questions
This commit is contained in:
+13
-1
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user