jina.drivers.indexยถ

class jina.drivers.index.BaseIndexDriver(executor=None, method='add', *args, **kwargs)[source]ยถ

Bases: jina.drivers.BaseExecutableDriver

Drivers inherited from this Driver will bind add() by default

Initialize a BaseExecutableDriver

Parameters
  • executor (Optional[str]) โ€“ the name of the sub-executor, only necessary when jina.executors.compound.CompoundExecutor is used

  • method (str) โ€“ the function name of the executor that the driver feeds to

class jina.drivers.index.VectorIndexDriver(executor=None, method='add', *args, **kwargs)[source]ยถ

Bases: jina.drivers.index.BaseIndexDriver

Extract chunk-level embeddings and add it to the executor

Initialize a BaseExecutableDriver

Parameters
  • executor (Optional[str]) โ€“ the name of the sub-executor, only necessary when jina.executors.compound.CompoundExecutor is used

  • method (str) โ€“ the function name of the executor that the driver feeds to

class jina.drivers.index.KVIndexDriver(executor=None, method='add', *args, **kwargs)[source]ยถ

Bases: jina.drivers.index.BaseIndexDriver

Serialize the documents/chunks in the request to key-value JSON pairs and write it using the executor

Initialize a BaseExecutableDriver

Parameters
  • executor (Optional[str]) โ€“ the name of the sub-executor, only necessary when jina.executors.compound.CompoundExecutor is used

  • method (str) โ€“ the function name of the executor that the driver feeds to