update new hybrid match_documents
Browse files- 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"\
|
| 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', ' ')
|