Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
fix(indexer): fix empty chunks indexing
  • Loading branch information
hanhxiao committed Sep 2, 2019
1 parent c48adc2 commit 2ba135dbfe1be58841694b25da9fa360fdcd7ced
Showing with 2 additions and 0 deletions.
  1. +2 −0 gnes/service/
@@ -48,6 +48,8 @@ def _handler_chunk_index(self, msg: 'gnes_pb2.Message'):
self.logger.warning('document (doc_id=%s) contains no chunks!' % d.doc_id)

for c in d.chunks:
vecs += [blob2array(c.embedding) for c in d.chunks]
doc_ids += [d.doc_id] * len(d.chunks)
offsets += [c.offset for c in d.chunks]

0 comments on commit 2ba135d

Please sign in to comment.