annikwag commited on
Commit
5d30e29
·
verified ·
1 Parent(s): fdbf51f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -18
app.py CHANGED
@@ -291,24 +291,6 @@ else:
291
  unsafe_allow_html=True
292
  )
293
 
294
- # --- RAG Answer Block (Left aligned, fully bold, highlighted in grey) ---
295
- # Retrieve the RAG answer and process each non-empty line
296
- rag_answer = get_rag_answer(var, filtered_semantic_no_dupe if not show_exact_matches else filtered_lexical_no_dupe, DEDICATED_ENDPOINT, WRITE_ACCESS_TOKEN)
297
- bullet_lines = []
298
- for line in rag_answer.splitlines():
299
- if line.strip():
300
- # Bold the entire line (numbers remain bold as part of the overall bold)
301
- line_bold = re.sub(r'(\d+)', r'<b>\1</b>', line)
302
- bullet_lines.append(f"<li><b>{line_bold}</b></li>")
303
- formatted_rag_answer = (
304
- "<div style='background-color: #f0f0f0; padding: 10px;'>"
305
- "<ul style='text-align: left; list-style-position: inside;'>"
306
- + "".join(bullet_lines) +
307
- "</ul></div>"
308
- )
309
- st.markdown(formatted_rag_answer, unsafe_allow_html=True)
310
- st.divider()
311
-
312
  # 3) Display results
313
  # Lexical Search Results Branch
314
  if show_exact_matches:
 
291
  unsafe_allow_html=True
292
  )
293
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
294
  # 3) Display results
295
  # Lexical Search Results Branch
296
  if show_exact_matches: