Add pagerank to KB. (#3809)

### What problem does this PR solve?

#3794

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Kevin Hu
2024-12-03 14:30:35 +08:00
committed by GitHub
parent 7543047de3
commit 74b28ef1b0
11 changed files with 67 additions and 26 deletions

View File

@ -21,6 +21,7 @@ class DataSet(Base):
self.chunk_count = 0
self.chunk_method = "naive"
self.parser_config = None
self.pagerank = 0
for k in list(res_dict.keys()):
if k not in self.__dict__:
res_dict.pop(k)