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 #206 from gnes-ai/fix-indexer-embedding
Browse files Browse the repository at this point in the history
fix(indexer): fix is_sorted in response flush away the request
  • Loading branch information
mergify[bot] authored Sep 4, 2019
2 parents 15c1dd6 + 40849ab commit 334d232
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gnes/service/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ def _handler_chunk_search(self, msg: 'gnes_pb2.Message'):
raise ServiceError(
'unsupported indexer, dont know how to use %s to handle this message' % self._model.__bases__)

# assume the chunk search will change the whatever sort order the message has
msg.response.search.is_sorted = False
results = self._model.query_and_score(msg.request.search.query.chunks, top_k=msg.request.search.top_k)
self._put_result_into_message(results, msg)

Expand Down

0 comments on commit 334d232

Please sign in to comment.