“vinay” commited on
Commit
859f87a
1 Parent(s): 64eafb1
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -118,9 +118,20 @@ load_or_create_vectorstore()
118
  2. Create a Prompt Template from the String Template
119
  """
120
  ### 1. DEFINE STRING TEMPLATE
121
- RAG_PROMPT_TEMPLATE = """"You are a helpful assistant.
 
 
 
122
  You answer user questions based on provided context.
123
- If you can't answer the question with the provided context, say you don't know.
 
 
 
 
 
 
 
 
124
  """
125
 
126
  ### 2. CREATE PROMPT TEMPLATE
 
118
  2. Create a Prompt Template from the String Template
119
  """
120
  ### 1. DEFINE STRING TEMPLATE
121
+ RAG_PROMPT_TEMPLATE = """"\
122
+ <|start_header_id|>system<|end_header_id|>
123
+
124
+ You are a helpful assistant.
125
  You answer user questions based on provided context.
126
+ If you can't answer the question with the provided context, say you don't know.<|eot_id|>
127
+ <|start_header_id|>user<|end_header_id|>
128
+ User Query:
129
+ {query}
130
+
131
+ Context:
132
+ {context}<|eot_id|>
133
+
134
+ <|start_header_id|>assistant<|end_header_id|>
135
  """
136
 
137
  ### 2. CREATE PROMPT TEMPLATE