Nelly-43 commited on
Commit
0e1b85f
·
verified ·
1 Parent(s): 3f681c7

Update app_web.py

Browse files
Files changed (1) hide show
  1. app_web.py +12 -12
app_web.py CHANGED
@@ -182,18 +182,18 @@ def render_landing_page():
182
  except Exception:
183
  qu_result = {"action": "search", "search_query": combined, "display_query": combined, "original_query": original_query, "route": "vector", "sql_query": None}
184
 
185
- if qu_result.get("action") == "clarify" and st.session_state.clarification_rounds < max_clarifications:
186
- # Ask clarification — store original query and question for context
187
- st.session_state.pending_clarification = original_query
188
- st.session_state.pending_clarification_question = qu_result.get('clarification_question', 'Could you be more specific?')
189
- st.session_state.clarification_rounds += 1
190
- clarification_msg = f"**Before I search, could you clarify?** {qu_result.get('clarification_question', 'Could you be more specific?')}"
191
- st.session_state.messages.append(
192
- {"role": "assistant", "content": clarification_msg}
193
- )
194
- with st.chat_message("assistant"):
195
- st.markdown(clarification_msg)
196
- return
197
 
198
  # After max clarification rounds, force search (matches CLI behavior)
199
  if qu_result.get("action") == "clarify":
 
182
  except Exception:
183
  qu_result = {"action": "search", "search_query": combined, "display_query": combined, "original_query": original_query, "route": "vector", "sql_query": None}
184
 
185
+ # if qu_result.get("action") == "clarify" and st.session_state.clarification_rounds < max_clarifications:
186
+ # # Ask clarification — store original query and question for context
187
+ # st.session_state.pending_clarification = original_query
188
+ # st.session_state.pending_clarification_question = qu_result.get('clarification_question', 'Could you be more specific?')
189
+ # st.session_state.clarification_rounds += 1
190
+ # clarification_msg = f"**Before I search, could you clarify?** {qu_result.get('clarification_question', 'Could you be more specific?')}"
191
+ # st.session_state.messages.append(
192
+ # {"role": "assistant", "content": clarification_msg}
193
+ # )
194
+ # with st.chat_message("assistant"):
195
+ # st.markdown(clarification_msg)
196
+ # return
197
 
198
  # After max clarification rounds, force search (matches CLI behavior)
199
  if qu_result.get("action") == "clarify":