srinit62 commited on
Commit
31c1c2f
·
verified ·
1 Parent(s): 9e2df4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -93,7 +93,10 @@ def get_rag_chain_response(user_question):
93
 
94
  def get_context_string_testing(user_question):
95
  ret_arr = get_context_info(user_question)
96
- context_str = ' \n'.join(ret_arr)
 
 
 
97
  return context_str
98
 
99
  # Gradio elements
 
93
 
94
  def get_context_string_testing(user_question):
95
  ret_arr = get_context_info(user_question)
96
+ context_str = ''
97
+ for i in range(len(ret_arr)):
98
+ # Printing the content of each document chunk (page content).
99
+ context_str += ret_arr[i].page_content + '\n '
100
  return context_str
101
 
102
  # Gradio elements