Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,8 +92,9 @@ def get_rag_chain_response(user_question):
|
|
| 92 |
return rag_chain.invoke({"question": user_question})
|
| 93 |
|
| 94 |
def get_context_string_testing(user_question):
|
| 95 |
-
context_str = ' \n'.join(get_context_info(user_question))
|
| 96 |
-
|
|
|
|
| 97 |
|
| 98 |
# Gradio elements
|
| 99 |
|
|
|
|
| 92 |
return rag_chain.invoke({"question": user_question})
|
| 93 |
|
| 94 |
def get_context_string_testing(user_question):
|
| 95 |
+
#context_str = ' \n'.join(get_context_info(user_question))
|
| 96 |
+
ret_arr = get_context_info(user_question)
|
| 97 |
+
return str(len(ret_arr)) #context_str
|
| 98 |
|
| 99 |
# Gradio elements
|
| 100 |
|