Spaces:
Running
Running
ryanrwatkins
commited on
Commit
•
e845125
1
Parent(s):
eff1034
Update app.py
Browse files
app.py
CHANGED
@@ -659,7 +659,10 @@ def answer_template(language="english"):
|
|
659 |
"""Pass the standalone question along with the chat history and context
|
660 |
to the `LLM` which will answer"""
|
661 |
|
662 |
-
template = f"""
|
|
|
|
|
|
|
663 |
Your answer must be in the language at the end.
|
664 |
|
665 |
<context>
|
@@ -867,7 +870,8 @@ with gr.Blocks(css=css) as demo:
|
|
867 |
with gr.Column(elem_id="col-container"):
|
868 |
|
869 |
|
870 |
-
gr.Markdown("""## Ask questions of our *needs assessment* bot!
|
|
|
871 |
""" ,
|
872 |
elem_id="header")
|
873 |
|
|
|
659 |
"""Pass the standalone question along with the chat history and context
|
660 |
to the `LLM` which will answer"""
|
661 |
|
662 |
+
template = f"""You are a professor who is an expert in needs assessment.
|
663 |
+
Answer the question at the end (convert the queestion to {language} language if it is not).
|
664 |
+
Use only the following context (delimited by <context></context>) in responding to the question.
|
665 |
+
Be polite and end by asking if you can answer any other questions.
|
666 |
Your answer must be in the language at the end.
|
667 |
|
668 |
<context>
|
|
|
870 |
with gr.Column(elem_id="col-container"):
|
871 |
|
872 |
|
873 |
+
gr.Markdown("""## Ask questions of our *needs assessment* bot! \n
|
874 |
+
**It is specially trained to only answer needs assessment related questions.**
|
875 |
""" ,
|
876 |
elem_id="header")
|
877 |
|