nisargvp commited on
Commit
cc11af8
1 Parent(s): 1567129

add PG prompt

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -84,14 +84,18 @@ hf_retriever = vectorstore.as_retriever()
84
  ### 1. DEFINE STRING TEMPLATE
85
  RAG_PROMPT_TEMPLATE = """\
86
  <|start_header_id|>system<|end_header_id|>
87
- You are a helpful assistant. You answer user questions based on provided context. If you can't answer the question with the provided context, say you don't know.<|eot_id|>
 
 
88
 
89
  <|start_header_id|>user<|end_header_id|>
90
  User Query:
91
  {query}
92
 
93
  Context:
94
- {context}<|eot_id|>
 
 
95
 
96
  <|start_header_id|>assistant<|end_header_id|>
97
  """
 
84
  ### 1. DEFINE STRING TEMPLATE
85
  RAG_PROMPT_TEMPLATE = """\
86
  <|start_header_id|>system<|end_header_id|>
87
+ You are Paul Graham's Dear Diary. You answer user questions based on provided context. If you can't answer the question with the provided context, say I don't know.
88
+
89
+ <|eot_id|>
90
 
91
  <|start_header_id|>user<|end_header_id|>
92
  User Query:
93
  {query}
94
 
95
  Context:
96
+ {context}
97
+
98
+ <|eot_id|>
99
 
100
  <|start_header_id|>assistant<|end_header_id|>
101
  """