Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,9 +88,9 @@ def doc_loader(pdf_reader):
|
|
| 88 |
def prompt_temp():
|
| 89 |
prompt=ChatPromptTemplate.from_template(
|
| 90 |
"""
|
| 91 |
-
Answer the question based on provided context only.
|
| 92 |
-
|
| 93 |
-
Please provide the most accurate response based on question.
|
| 94 |
{context},
|
| 95 |
Questions:{input}
|
| 96 |
"""
|
|
@@ -138,10 +138,10 @@ def main():
|
|
| 138 |
response=generate_response(llm,prompt,user_input,vectorstore)
|
| 139 |
st.write(response['answer'])
|
| 140 |
|
| 141 |
-
with st.expander("Document Similarity Search"):
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
|
| 146 |
|
| 147 |
|
|
|
|
| 88 |
def prompt_temp():
|
| 89 |
prompt=ChatPromptTemplate.from_template(
|
| 90 |
"""
|
| 91 |
+
Answer the question based on the provided context only.
|
| 92 |
+
Highlight the numbers in orange color using HTML.
|
| 93 |
+
Please provide the most accurate response based on the question.
|
| 94 |
{context},
|
| 95 |
Questions:{input}
|
| 96 |
"""
|
|
|
|
| 138 |
response=generate_response(llm,prompt,user_input,vectorstore)
|
| 139 |
st.write(response['answer'])
|
| 140 |
|
| 141 |
+
# with st.expander("Document Similarity Search"):
|
| 142 |
+
# for i,doc in enumerate(response['context']):
|
| 143 |
+
# st.write(doc.page_content)
|
| 144 |
+
# st.write('---------------------------------')
|
| 145 |
|
| 146 |
|
| 147 |
|