cryogenic22 commited on
Commit
4f327f1
·
verified ·
1 Parent(s): 219ee62

Update backend.py

Browse files
Files changed (1) hide show
  1. backend.py +6 -8
backend.py CHANGED
@@ -217,14 +217,12 @@ def initialize_qa_system(_vector_store):
217
  api_key=os.environ.get("OPENAI_API_KEY"),
218
  )
219
 
220
- # Define the prompt template
221
- prompt = ChatPromptTemplate.from_messages(
222
- [
223
- ("system", "You are a helpful assistant"),
224
- MessagesPlaceholder(variable_name="chat_history"),
225
- ("human", "{input}"),
226
- ]
227
- )
228
 
229
  # Define the tools
230
  tools = [
 
217
  api_key=os.environ.get("OPENAI_API_KEY"),
218
  )
219
 
220
+ prompt = ChatPromptTemplate.from_messages([
221
+ ("system", "You are a helpful assistant"),
222
+ MessagesPlaceholder(variable_name="chat_history"),  
223
+
224
+ ("human", "{input}"),
225
+ MessagesPlaceholder(variable_name="agent_scratchpad"),  
 
 
226
 
227
  # Define the tools
228
  tools = [