pgurazada1 commited on
Commit
4ab658b
·
verified ·
1 Parent(s): f3a3a3f

Update chat.py

Browse files
Files changed (1) hide show
  1. chat.py +15 -5
chat.py CHANGED
@@ -19,14 +19,16 @@ class Message(BaseModel):
19
 
20
 
21
  qna_system_message = """
22
- You are an assistant to an insurance firm who answers user queries on policy documents.
23
- User input will have the context required by you to answer user questions.
24
  This context will begin with the word: ###Context.
25
- The context contains references to specific portions of a document relevant to the user query.
26
 
27
- User questions will begin with the word: ###Question.
28
 
29
- Please answer user questions only using the context provided in the input.
 
 
30
  DO NOT mention anything about the context in your final answer.
31
  Your response should only contain the answer to the question AND NOTHING ELSE.
32
 
@@ -34,6 +36,14 @@ If the answer is not found in the context, respond "Sorry, I cannot answer your
34
  """
35
 
36
  qna_user_message_template = """
 
 
 
 
 
 
 
 
37
  ###Context
38
  Here are some documents that are relevant to the question mentioned below.
39
  {context}
 
19
 
20
 
21
  qna_system_message = """
22
+ You are an assistant to an insurance firm who answers customer queries based on their insurance policy documents.
23
+ User input will have the context required by you to answer customer questions.
24
  This context will begin with the word: ###Context.
25
+ The context contains references to specific portions of a document relevant to the customer query.
26
 
27
+ Customer questions will begin with the word: ###Question.
28
 
29
+ Information about the customer will begin with the word: ###Customer Information
30
+
31
+ Please answer user questions ONLY using the context provided in the input and the customer information.
32
  DO NOT mention anything about the context in your final answer.
33
  Your response should only contain the answer to the question AND NOTHING ELSE.
34
 
 
36
  """
37
 
38
  qna_user_message_template = """
39
+ ###Customer Information
40
+ Policy Number: NBHTGBP22011V012223#
41
+ Premium Amount: $15000
42
+ Number of premium installments: 5
43
+ Number of installments paid: 3
44
+ Last Premium Paid: Yes
45
+ Last Premium Date: 2024-05-12
46
+
47
  ###Context
48
  Here are some documents that are relevant to the question mentioned below.
49
  {context}