Spaces:
Build error
Build error
Update app.py
Browse files
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 = '
|
|
|
|
|
|
|
|
|
|
| 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
|