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


fix(vector indexer): reorder relevance and chunk weight
Browse files Browse the repository at this point in the history
  • Loading branch information
jemmyshin committed Jul 19, 2019
1 parent 219a4d3 commit 4977aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnes/service/
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _handler_chunk_search(self, msg: 'gnes_pb2.Message'):
results = self._model.query(vecs,
q_weights = [qc.weight for qc in]
for all_topks, qc_weight in zip(results, q_weights):
for _doc_id, _offset, _relevance, _weight in all_topks:
for _doc_id, _offset, _weight, _relevance in all_topks:
r =
r.chunk.doc_id = _doc_id
r.chunk.offset_1d = _offset
Expand Down

0 comments on commit 4977aa3

Please sign in to comment.