Skip to content
Permalink
Browse files

fix(indexer): fix empty chunks indexing

  • Loading branch information...
hanxiao committed Sep 2, 2019
1 parent c48adc2 commit 2ba135dbfe1be58841694b25da9fa360fdcd7ced
Showing with 2 additions and 0 deletions.
  1. +2 −0 gnes/service/indexer.py
@@ -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)
continue

for c in d.chunks:
self.logger.info(c.embedding)
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.
You can’t perform that action at this time.