gnes.indexer.doc.dict module

class gnes.indexer.doc.dict.DictIndexer(*args, **kwargs)[source]

Bases: gnes.indexer.base.BaseDocIndexer

add(keys: List[int], docs: List[gnes_pb2.Document], *args, **kwargs)[source]

adding new docs and their protobuf representation :param keys: list of doc_id :param docs: list of protobuf Document objects

query(keys: List[int], *args, **kwargs) → List[gnes_pb2.Document][source]
train(*args, **kwargs)

Train the model, need to be overrided