srinidhidevaraj commited on
Commit
1f0a7b0
1 Parent(s): b41691b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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
- Your context retrieval mechanism works correclty but your are not providing answer from context.
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
- for i,doc in enumerate(response['context']):
143
- st.write(doc.page_content)
144
- st.write('---------------------------------')
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