Spaces:
Paused
Paused
Daniel Marques
commited on
Commit
•
b9165e1
1
Parent(s):
ceffe74
feat: v1
Browse files- prompt_template_utils.py +1 -3
prompt_template_utils.py
CHANGED
@@ -9,9 +9,7 @@ from langchain.prompts import PromptTemplate
|
|
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 |
def get_prompt_template(system_prompt=system_prompt, promptTemplate_type=None, history=False):
|
17 |
if promptTemplate_type == "llama":
|
|
|
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":
|