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

Commit

Permalink
fix(indexer): fix empty chunks indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Sep 2, 2019
1 parent c48adc2 commit 2ba135d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gnes/service/indexer.py
Expand Up @@ -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]
Expand Down

0 comments on commit 2ba135d

Please sign in to comment.