zihanliu commited on
Commit
642e023
1 Parent(s): c16edd1

Update README.md

Browse files

Add prompt template for the scenario where context is not available.

Files changed (1) hide show
  1. README.md +18 -0
README.md CHANGED
@@ -40,6 +40,8 @@ Note that ChatQA-1.5 is built based on Llama-3 base model, and ChatQA-1.0 is bui
40
 
41
 
42
  ## Prompt Format
 
 
43
  <pre>
44
  System: {System}
45
 
@@ -54,6 +56,22 @@ User: {Question}
54
  Assistant:
55
  </pre>
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
 
58
  ## How to use
59
 
 
40
 
41
 
42
  ## Prompt Format
43
+ **We highly recommend that you use the prompt format we provide, as follows:**
44
+ ### when context is available
45
  <pre>
46
  System: {System}
47
 
 
56
  Assistant:
57
  </pre>
58
 
59
+ ### when context is not available
60
+ <pre>
61
+ System: {System}
62
+
63
+ User: {Question}
64
+
65
+ Assistant: {Response}
66
+
67
+ User: {Question}
68
+
69
+ Assistant:
70
+ </pre>
71
+ **The content of the system's turn (i.e., {System}) for both scenarios is as follows:**
72
+ <pre>
73
+ "This is a chat between a user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions based on the context. The assistant should also indicate when the answer cannot be found in the context."
74
+ </pre>
75
 
76
  ## How to use
77