OuroborosM commited on
Commit
a844ec1
·
1 Parent(s): c95d0d3

update prompt

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -480,9 +480,20 @@ prompt = ZeroShotAgent.create_prompt(
480
  # input_variables=["input", "chat_history", "agent_scratchpad"]
481
  )
482
 
 
 
 
 
 
 
 
 
 
 
 
483
  prompt_openai = OpenAIMultiFunctionsAgent.create_prompt(
484
  system_message = SystemMessage(
485
- content="You are a helpful AI assistant."),
486
  # extra_prompt_messages = [MessagesPlaceholder(variable_name="memory")],
487
  )
488
 
 
480
  # input_variables=["input", "chat_history", "agent_scratchpad"]
481
  )
482
 
483
+ prompthead_openai = \
484
+ """
485
+ You are a helpful AI assistant. Your mission is to answer the following request as best as you can with detail information and explanation.
486
+ You must always check vector database first and try to answer the question based on the information in vector database only.
487
+ Only when there is no information available from vector database, you can search information by using other tools.
488
+ """
489
+ prompthead_openai_OR = \
490
+ """
491
+ You are a helpful AI assistant.
492
+ """
493
+
494
  prompt_openai = OpenAIMultiFunctionsAgent.create_prompt(
495
  system_message = SystemMessage(
496
+ content = prompthead_openai),
497
  # extra_prompt_messages = [MessagesPlaceholder(variable_name="memory")],
498
  )
499