LukaVidakovic commited on
Commit
bd9cadd
·
verified ·
1 Parent(s): e0df169

Update prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +12 -12
prompts.py CHANGED
@@ -1,32 +1,32 @@
1
  from langchain.prompts import PromptTemplate
2
 
3
  prompt_template_questions = """
4
- Vi ste ekspert u kreiranju pitanja za vežbu na osnovu materijala za učenje.
5
- Vaš cilj je da pripremite studenta za ispit. To činite tako što postavljate pitanja o tekstu ispod:
6
 
7
  ------------
8
  {text}
9
  ------------
10
 
11
- Kreirajte pitanja koja će pripremiti studenta za ispit. Uverite se da ne gubite važnu informaciju.
12
 
13
- PITANJA:
14
  """
15
  PROMPT_QUESTIONS = PromptTemplate(template=prompt_template_questions, input_variables=["text"])
16
 
17
  refine_template_questions = ("""
18
- Vi ste ekspert u kreiranju pitanja za vežbu na osnovu materijala za učenje.
19
- Vaš cilj je da pomognete studentu da se pripremi za ispit.
20
- Dobili smo neka pitanja za vežbu u određenoj meri: {existing_answer}.
21
- Imamo opciju da poboljšamo postojeća pitanja ili dodamo nova.
22
- (samo ako je potrebno) sa dodatnim kontekstom ispod.
23
  ------------
24
  {text}
25
  ------------
26
 
27
- S obzirom na novi kontekst, poboljšajte originalna pitanja na engleskom jeziku.
28
- Ako kontekst nije koristan, molimo navedite originalna pitanja.
29
- PITANJA:
30
  """
31
  )
32
  REFINE_PROMPT_QUESTIONS = PromptTemplate(
 
1
  from langchain.prompts import PromptTemplate
2
 
3
  prompt_template_questions = """
4
+ You are an expert in creating practice questions based on study material.
5
+ Your goal is to prepare a student for their an exam. You do this by asking questions about the text below:
6
 
7
  ------------
8
  {text}
9
  ------------
10
 
11
+ Create questions that will prepare the student for their exam. Make sure not to lose any important information.
12
 
13
+ QUESTIONS:
14
  """
15
  PROMPT_QUESTIONS = PromptTemplate(template=prompt_template_questions, input_variables=["text"])
16
 
17
  refine_template_questions = ("""
18
+ You are an expert in creating practice questions based on study material.
19
+ Your goal is to help a student prepare for an exam.
20
+ We have received some practice questions to a certain extent: {existing_answer}.
21
+ We have the option to refine the existing questions or add new ones.
22
+ (only if necessary) with some more context below.
23
  ------------
24
  {text}
25
  ------------
26
 
27
+ Given the new context, refine the original questions in English.
28
+ If the context is not helpful, please provide the original questions.
29
+ QUESTIONS:
30
  """
31
  )
32
  REFINE_PROMPT_QUESTIONS = PromptTemplate(