tykiww commited on
Commit
1c6f413
·
verified ·
1 Parent(s): 82fdbb3

Create utils.py

Browse files
Files changed (1) hide show
  1. services/qa_service/utils.py +19 -0
services/qa_service/utils.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ def prompt_template():
2
+ return """Below is a query about a meeting and a snippet of a meeting transcript. Write a response that appropriately completes the request.
3
+ - Utilize transcript for detailed information.
4
+ - Stick to transcript and do not incorporate preexisting knowledge to enhance response.
5
+ - State reasoning behind your decisions.
6
+
7
+ ### Query:
8
+ {}
9
+
10
+ ### Transcript:
11
+ {}
12
+
13
+ ### Response:
14
+ {}"""
15
+
16
+ def format_prompt(user_query, context):
17
+ prompt = prompt_template().format(user_query, context, "")
18
+ return prompt
19
+