gnes.indexer.doc.dict module¶

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

Bases: gnes.indexer.base.BaseDocIndexer

add(keys, docs, *args, **kwargs)[source]¶

adding new docs and their protobuf representation

Parameters:
  • keys (List[int]) – list of doc_id
  • docs (List[Document]) – list of protobuf Document objects
query(keys, *args, **kwargs)[source]¶
Return type:List[Document]
train(*args, **kwargs)¶

Train the model, need to be overrided