mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-31 23:55:06 +08:00
Rebuild graph when it's out of time. (#4607)
### What problem does this PR solve? #4543 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [x] Refactoring
This commit is contained in:
@ -251,11 +251,11 @@ class KGSearch(Dealer):
|
||||
break
|
||||
|
||||
if ents:
|
||||
ents = "\n-Entities-\n{}".format(pd.DataFrame(ents).to_csv())
|
||||
ents = "\n---- Entities ----\n{}".format(pd.DataFrame(ents).to_csv())
|
||||
else:
|
||||
ents = ""
|
||||
if relas:
|
||||
relas = "\n-Relations-\n{}".format(pd.DataFrame(relas).to_csv())
|
||||
relas = "\n---- Relations ----\n{}".format(pd.DataFrame(relas).to_csv())
|
||||
else:
|
||||
relas = ""
|
||||
|
||||
@ -296,7 +296,7 @@ class KGSearch(Dealer):
|
||||
|
||||
if not txts:
|
||||
return ""
|
||||
return "\n-Community Report-\n" + "\n".join(txts)
|
||||
return "\n---- Community Report ----\n" + "\n".join(txts)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user