Daniel Marques commited on
Commit
8df2948
1 Parent(s): b9165e1
Files changed (1) hide show
  1. prompt_template_utils.py +5 -1
prompt_template_utils.py CHANGED
@@ -9,7 +9,11 @@ from langchain.prompts import PromptTemplate
9
 
10
  # this is specific to Llama-2.
11
 
12
- system_prompt = """You are a helpful assistant, and you will use the context and documents provided in the training to answer users' questions. Please read the context provided carefully before responding to questions and follow a step-by-step thought process. If you cannot answer a user's question based on the provided context, please inform the user. Do not use any other information to answer the user. Provide a detailed response based on the content of locally trained documents."""
 
 
 
 
13
 
14
  def get_prompt_template(system_prompt=system_prompt, promptTemplate_type=None, history=False):
15
  if promptTemplate_type == "llama":
 
9
 
10
  # this is specific to Llama-2.
11
 
12
+ system_prompt = """You are a helpful assistant, you will use the context and documents provided in the training to answer users questions.
13
+ Read the context provided before answering questions and think step by step. If you can't answer a user's question based on the
14
+ context provided, inform the user. Don't use any other information to answer the user. Provide a detailed answer to the question."""
15
+
16
+ # system_prompt = """You are a helpful assistant, and you will use the context and documents provided in the training to answer users' questions. Please read the context provided carefully before responding to questions and follow a step-by-step thought process. If you cannot answer a user's question based on the provided context, please inform the user. Do not use any other information to answer the user. Provide a detailed response based on the content of locally trained documents."""
17
 
18
  def get_prompt_template(system_prompt=system_prompt, promptTemplate_type=None, history=False):
19
  if promptTemplate_type == "llama":