Spaces:
Paused
Paused
Daniel Marques
commited on
Commit
•
ceffe74
1
Parent(s):
70e00d3
feat: v1
Browse files- prompt_template_utils.py +3 -3
- 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
|
13 |
-
Read the
|
14 |
-
|
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 |
-
|
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
|