Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,8 @@ _ = load_dotenv(find_dotenv())
|
|
17 |
#openai.api_key = os.environ["OPENAI_API_KEY"]
|
18 |
|
19 |
template = """Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know,
|
20 |
-
don't try to make up an answer.
|
21 |
-
|
22 |
|
23 |
QA_CHAIN_PROMPT = PromptTemplate(input_variables = ["context", "question"], template = template)
|
24 |
|
|
|
17 |
#openai.api_key = os.environ["OPENAI_API_KEY"]
|
18 |
|
19 |
template = """Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know,
|
20 |
+
don't try to make up an answer. Keep the answer as concise as possible. Always say "Thanks, Bernd Straehle 🚀" at the end of the answer.
|
21 |
+
{context} Question: {question} Helpful Answer: """
|
22 |
|
23 |
QA_CHAIN_PROMPT = PromptTemplate(input_variables = ["context", "question"], template = template)
|
24 |
|