mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 07:10:29 +08:00
fix: preserve raptor tree titles (#17772)
This commit is contained in:
@@ -231,12 +231,14 @@ class RecursiveAbstractiveProcessing4TreeOrganizedRetrieval:
|
||||
"",
|
||||
cnt,
|
||||
)
|
||||
cnt = str(cnt or "").strip()
|
||||
logging.debug(f"SUM: {cnt}")
|
||||
|
||||
self._check_task_canceled(task_id, "before embedding")
|
||||
|
||||
embds = await self._embedding_encode(cnt)
|
||||
return cnt.split("\n")[0], cnt, embds
|
||||
title = cnt.splitlines()[0].strip() if cnt else ""
|
||||
return title, cnt, embds
|
||||
except TaskCanceledException:
|
||||
raise
|
||||
except Exception as exc:
|
||||
|
||||
Reference in New Issue
Block a user