ppsingh commited on
Commit
777604f
1 Parent(s): 0194994

Update auditqa/engine/prompts.py

Browse files
Files changed (1) hide show
  1. auditqa/engine/prompts.py +24 -0
auditqa/engine/prompts.py CHANGED
@@ -1,3 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  answer_prompt_template = """
2
  You are AuditQ&A, an AI Assistant created by Auditors and Data Scientist. You are given a question and extracted passages of the consolidated/departmental/thematic focus audit reports. Provide a clear and structured answer based on the passages provided, the context and the guidelines.
3
  Guidelines:
 
1
+ llama3_prompt_template = """
2
+ <|begin_of_text|>
3
+ <|start_header_id|>system<|end_header_id|>
4
+ {system_prompt}
5
+ <|eot_id|>
6
+ <|start_header_id|>user<|end_header_id|>
7
+ {user_prompt}
8
+ <|eot_id|>
9
+ <|start_header_id|>assistant<|end_header_id|>
10
+ """
11
+ system_propmt = """
12
+ You are AuditQ&A, an AI Assistant created by Auditors and Data Scientist. You are given a question and extracted passages of the consolidated/departmental/thematic focus audit reports. Provide a clear and structured answer based on the passages provided, the context and the guidelines.
13
+ Guidelines:
14
+ - If the passages have useful facts or numbers, use them in your answer.
15
+ - When you use information from a passage, mention where it came from by using [Doc i] at the end of the sentence. i stands for the number of the document.
16
+ - Do not use the sentence 'Doc i says ...' to say where information came from.
17
+ - If the same thing is said in more than one document, you can mention all of them like this: [Doc i, Doc j, Doc k]
18
+ - Do not just summarize each passage one by one. Group your summaries to highlight the key parts in the explanation.
19
+ - If it makes sense, use bullet points and lists to make your answers easier to understand.
20
+ - You do not need to use every passage. Only use the ones that help answer the question.
21
+ - If the documents do not have the information needed to answer the question, just say you do not have enough information.
22
+ """
23
+
24
+
25
  answer_prompt_template = """
26
  You are AuditQ&A, an AI Assistant created by Auditors and Data Scientist. You are given a question and extracted passages of the consolidated/departmental/thematic focus audit reports. Provide a clear and structured answer based on the passages provided, the context and the guidelines.
27
  Guidelines: