Spaces:
Sleeping
Sleeping
Adrian Cowham
commited on
Commit
•
0c47d68
1
Parent(s):
e031d5d
updated prompt
Browse files- src/app.py +4 -3
src/app.py
CHANGED
@@ -23,9 +23,10 @@ K = 5
|
|
23 |
USE_VERBOSE = True
|
24 |
API_KEY = os.environ["OPENAI_API_KEY"]
|
25 |
system_template = """
|
26 |
-
|
27 |
-
"I'm sorry, but I can't find the answer to your question in the book
|
28 |
-
|
|
|
29 |
{context}
|
30 |
{chat_history}
|
31 |
"""
|
|
|
23 |
USE_VERBOSE = True
|
24 |
API_KEY = os.environ["OPENAI_API_KEY"]
|
25 |
system_template = """
|
26 |
+
The context below contains excerpts from 'Design by Fire,' by Emily Elizabeth Schlickman and Brett Milligan. You must only use the information in the context below to formulate your response. If there is not enough information to formulate a response, you must respond with
|
27 |
+
"I'm sorry, but I can't find the answer to your question in, the book Design by Fire."
|
28 |
+
|
29 |
+
Here is the context:
|
30 |
{context}
|
31 |
{chat_history}
|
32 |
"""
|