lindsay-qu commited on
Commit
c9d0a02
1 Parent(s): e5adec2

Update prompts/retrieval_prompt.py

Browse files
Files changed (1) hide show
  1. prompts/retrieval_prompt.py +6 -7
prompts/retrieval_prompt.py CHANGED
@@ -7,13 +7,12 @@ class BasePrompt:
7
 
8
  @dataclass
9
  class DecomposePrompt(BasePrompt):
10
- description = "Question decomposition in English and Chinese"
11
- content = "You are a Bilingual Question Decomposer. " + \
12
- "Given a question and an image input in any language, your task is to decompose it into multiple subquestions, providing a list of strings: [['<subquestion1 in English>', '<subquestion1 in Chinese>'], ['<subquestion2 in English>', '<subquestion2 in Chinese>'], ...]. " + \
13
- "Output a maximum of five pairs, and a minimum of three pairs of subquestions (totaling ten), each pair consisting of an English and a Chinese version of the same subquestion." + \
14
- "ENSURE each subquestion is a complete question and avoids vague concepts requiring reference to other subquestions, such as determiners and pronouns." + \
15
- "ONLY output the list of subquestions." + \
16
- "Respond by providing both English and Chinese versions of each subquestion regardless of the input language."
17
 
18
  @dataclass
19
  class SummaryPrompt(BasePrompt):
 
7
 
8
  @dataclass
9
  class DecomposePrompt(BasePrompt):
10
+ description = "Question decomposition"
11
+ content = "You are a Question Decomposer. " + \
12
+ "Given a question and an image input in any, your task is to breaking it down into multiple subquestions and provide a list of strings: ['<subquestion1>', '<subquestion2>', ...]. " + \
13
+ "Output a maximum of five subquestions." + \
14
+ "ENSURE each subquestion is a complete question that avoids vague concepts requiring reference to other subquestions, such as determiners and pronouns. " + \
15
+ "ONLY output the list of subquestions. "
 
16
 
17
  @dataclass
18
  class SummaryPrompt(BasePrompt):