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

Commit

Permalink
fix(service): is input list is false when query
Browse files Browse the repository at this point in the history
  • Loading branch information
jemmyshin committed Sep 3, 2019
1 parent 926250d commit a8d2acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnes/service/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@ def _handler_train(self, msg: 'gnes_pb2.Message'):

@handler.register(gnes_pb2.Request.QueryRequest)
def _handler_search(self, msg: 'gnes_pb2.Message'):
_, embeds = self.embed_chunks_in_docs(msg.request.search.query)
_, embeds = self.embed_chunks_in_docs(msg.request.search.query, is_input_list=False)
msg.request.search.query.chunk_embeddings.CopyFrom(array2blob(embeds))

0 comments on commit a8d2acf

Please sign in to comment.