Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -656,7 +656,6 @@ def answer_template(language="english"):
|
|
656 |
</context>
|
657 |
|
658 |
Question: {{question}}
|
659 |
-
Question: {question}
|
660 |
Language: {language}.
|
661 |
|
662 |
"""
|
@@ -674,8 +673,8 @@ answer_prompt = ChatPromptTemplate.from_template(answer_template())
|
|
674 |
|
675 |
# invoke the ChatPromptTemplate
|
676 |
answer_prompt.invoke(
|
677 |
-
{"question":"plaese
|
678 |
-
"context":[Document(page_content="
|
679 |
"chat_history":memory.chat_memory}
|
680 |
)
|
681 |
|
|
|
656 |
</context>
|
657 |
|
658 |
Question: {{question}}
|
|
|
659 |
Language: {language}.
|
660 |
|
661 |
"""
|
|
|
673 |
|
674 |
# invoke the ChatPromptTemplate
|
675 |
answer_prompt.invoke(
|
676 |
+
{"question":"plaese ",
|
677 |
+
"context":[Document(page_content="include...")], # the context is a list of retrieved documents.
|
678 |
"chat_history":memory.chat_memory}
|
679 |
)
|
680 |
|