Skip to content
Permalink
Browse files

fix(vector indexer): reorder relevance and chunk weight

  • Loading branch information...
jemmyshin committed Jul 19, 2019
1 parent 219a4d3 commit 4977aa3cf5e247c967c7b5d0729916fa69cc0381
Showing with 1 addition and 1 deletion.
  1. +1 −1 gnes/service/indexer.py
@@ -61,7 +61,7 @@ def _handler_chunk_search(self, msg: 'gnes_pb2.Message'):
results = self._model.query(vecs, top_k=msg.request.search.top_k)
q_weights = [qc.weight for qc in msg.request.search.query.chunks]
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 = msg.response.search.topk_results.add()
r.chunk.doc_id = _doc_id
r.chunk.offset_1d = _offset

0 comments on commit 4977aa3

Please sign in to comment.
You can’t perform that action at this time.