Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
·
b8dad98
1
Parent(s):
f00a66e
Update prompt using langchain.PromptTemplate
Browse files
app.py
CHANGED
|
@@ -496,8 +496,8 @@ def embed_files(progress=gr.Progress()):
|
|
| 496 |
Think step by step and be as helpful as possible. Be
|
| 497 |
succinct, keep answers short and to the point.
|
| 498 |
BOOK EXCERPTS:
|
| 499 |
-
{
|
| 500 |
-
QUESTION: {
|
| 501 |
Your answer as the personified version of the book:"""
|
| 502 |
prompt = PromptTemplate(
|
| 503 |
template=prompt_template, input_variables=["context", "question"]
|
|
|
|
| 496 |
Think step by step and be as helpful as possible. Be
|
| 497 |
succinct, keep answers short and to the point.
|
| 498 |
BOOK EXCERPTS:
|
| 499 |
+
{context}
|
| 500 |
+
QUESTION: {question}
|
| 501 |
Your answer as the personified version of the book:"""
|
| 502 |
prompt = PromptTemplate(
|
| 503 |
template=prompt_template, input_variables=["context", "question"]
|