VietCat commited on
Commit
5b886d1
·
1 Parent(s): 10620c0

update new hybrid match_documents

Browse files
Files changed (1) hide show
  1. app/main.py +1 -1
app/main.py CHANGED
@@ -436,7 +436,7 @@ async def format_search_results(question: str, matches: List[Dict[str, Any]], pa
436
  if not top or (match.get('similarity', 0) > top.get('similarity', 0)):
437
  top = match
438
 
439
- full_result_text += f"\nĐoạn {i}:\n"
440
  tieude = (match.get('tieude') or '').strip()
441
  noidung = (match.get('noidung') or '').strip()
442
  hanhvi = (tieude + "\n" + noidung).strip().replace('\n', ' ')
 
436
  if not top or (match.get('similarity', 0) > top.get('similarity', 0)):
437
  top = match
438
 
439
+ full_result_text += f"\n{match.get('structure', '').strip()}:\n"
440
  tieude = (match.get('tieude') or '').strip()
441
  noidung = (match.get('noidung') or '').strip()
442
  hanhvi = (tieude + "\n" + noidung).strip().replace('\n', ' ')