Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
refactor(proto): assign doc id in request generator
Browse files Browse the repository at this point in the history
  • Loading branch information
jemmyshin committed Aug 15, 2019
1 parent da3d3a8 commit 3a2b85b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gnes/router/reduce/doc_sum.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def apply(self, msg: 'gnes_pb2.Message', accum_msgs: List['gnes_pb2.Message'], *
doc_score_explained = defaultdict(str)

for d, s, ex in zip(all_docs, all_docs_socres, all_score_explained):
doc_id[d.meta_info] = d
doc_score[d.meta_info] += s
doc_score_explained[d.meta_info] += '%s\n' % ex
doc_id[d.doc_id] = d
doc_score[d.doc_id] += s
doc_score_explained[d.doc_id] += '%s\n' % ex

msg.response.search.ClearField('topk_results')

Expand Down

0 comments on commit 3a2b85b

Please sign in to comment.