Skip to content
Permalink
Browse files

refactor(proto): refactor offset nd

  • Loading branch information...
jemmyshin committed Aug 27, 2019
1 parent cf53d29 commit c3ebb93a7e1361895ac1628ba54532c79ad72fcf
Showing with 2 additions and 2 deletions.
  1. +2 −2 gnes/service/indexer.py
@@ -93,8 +93,8 @@ def _cal_offset_relevance(q_offset, i_offset):
r.score = _weight * qc_weight * _relevance * offset_relevance
r.score_explained = '[chunk_score at doc: %d, offset: %d] = ' \
'(doc_chunk_weight: %.6f) * ' \
'(query_doc_chunk_relevance: %.6f) * ' \
'(chunk_offset_relevance: %.6f) * ' \
'(chunk_relevance: %.6f) * ' \
'(offset_divergence: %.6f) * ' \
'(query_chunk_weight: %.6f)' % (
_doc_id, _offset, _weight, _relevance, offset_relevance, qc_weight)
msg.response.search.top_k = topk

0 comments on commit c3ebb93

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