Daniel Marques commited on
Commit
ceffe74
1 Parent(s): 70e00d3
Files changed (2) hide show
  1. prompt_template_utils.py +3 -3
  2. run.sh +3 -3
prompt_template_utils.py CHANGED
@@ -9,9 +9,9 @@ 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 provided context to answer user questions.
13
- Read the given context before answering questions and think step by step. If you can not answer a user question based on
14
- the provided context, inform the user. Do not use any other information for answering 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, 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":
run.sh CHANGED
@@ -1,5 +1,5 @@
1
- redis-cli --version
2
-
3
- nohup redis-server &
4
 
5
  uvicorn "main:app" --port 7860 --host 0.0.0.0
 
1
+ # Redis Support uncomment this lines
2
+ # redis-cli --version
3
+ # nohup redis-server &
4
 
5
  uvicorn "main:app" --port 7860 --host 0.0.0.0