Compare commits

...

2 Commits

Author SHA1 Message Date
Jin Hai
9f080a4f45 Py: ruff format (#17193)
### Summary

format issue

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-07-21 21:04:09 +08:00
Wang Qi
1c5a22e226 Enrich the ragflow_client.py (#17189) 2026-07-21 20:18:20 +08:00
2 changed files with 480 additions and 281 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1939,12 +1939,7 @@ async def cleanup_timeline_isolated_entities(
if edge is not None:
connected_names.update(name.casefold() for name in edge if name)
orphan_ids = [
row_id
for row_id, row in rows.items()
if row.get("knowledge_graph_kwd") == "entity"
and _struct_entity_name(row).casefold() not in connected_names
]
orphan_ids = [row_id for row_id, row in rows.items() if row.get("knowledge_graph_kwd") == "entity" and _struct_entity_name(row).casefold() not in connected_names]
if orphan_ids:
await thread_pool_exec(
settings.docStoreConn.delete,