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

Commit

Permalink
Merge pull request #34 from gnes-ai/imageEncoder
Browse files Browse the repository at this point in the history
fix(vector indexer): reorder relevance and chunk weight
  • Loading branch information
Larryjianfeng authored Jul 19, 2019
2 parents 219a4d3 + 4977aa3 commit 3febe99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnes/service/indexer.py
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, 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
Expand Down

0 comments on commit 3febe99

Please sign in to comment.