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

Commit

Permalink
Browse files Browse the repository at this point in the history
feat(cli): add --sorted_response as cli argument
  • Loading branch information
hanhxiao committed Sep 4, 2019
1 parent 15c1dd6 commit 201c27e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gnes/service/encoder.py
Expand Up @@ -89,3 +89,6 @@ def _handler_train(self, msg: 'gnes_pb2.Message'):
@handler.register(gnes_pb2.Request.QueryRequest)
def _handler_search(self, msg: 'gnes_pb2.Message'):
self.embed_chunks_in_docs(msg.request.search.query, is_input_list=False)
self.logger.info(len(msg.request.search.query.chunks))
for c in msg.request.search.query.chunks:
self.logger.info(c.embedding)

0 comments on commit 201c27e

Please sign in to comment.