Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -90,7 +90,9 @@ def load_prompt():
|
|
90 |
Use the following pieces of context to answer the users question. If you don't know the answer,
|
91 |
just say that you don't know, don't try to make up an answer. Provide a source reference.
|
92 |
ALWAYS return a "sources" part in your answer.
|
93 |
-
The "sources" part should be a reference to the source of the documents from which you got your answer.
|
|
|
|
|
94 |
|
95 |
The output should be a markdown code snippet formatted in the following schema:
|
96 |
```json
|
@@ -181,5 +183,5 @@ if ask:
|
|
181 |
st.write(f"{answer}")
|
182 |
|
183 |
# sources
|
184 |
-
with st.expander(label = f"From
|
185 |
st.markdown(extract)
|
|
|
90 |
Use the following pieces of context to answer the users question. If you don't know the answer,
|
91 |
just say that you don't know, don't try to make up an answer. Provide a source reference.
|
92 |
ALWAYS return a "sources" part in your answer.
|
93 |
+
The "sources" part should be a reference to the source of the documents from which you got your answer.
|
94 |
+
|
95 |
+
Remember to only use the given context to answer the question, very important.
|
96 |
|
97 |
The output should be a markdown code snippet formatted in the following schema:
|
98 |
```json
|
|
|
183 |
st.write(f"{answer}")
|
184 |
|
185 |
# sources
|
186 |
+
with st.expander(label = f"From: {pages}", expanded = False):
|
187 |
st.markdown(extract)
|