jina.drivers.index

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

Bases: jina.drivers.FlatRecursiveMixin, jina.drivers.BaseExecutableDriver

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

check_key_length(val)[source]

Check if the max length of val(e.g. doc id) is larger than key_length.

Parameters

val (Iterable[str]) – The values to be checked

runtime: Optional[ZEDRuntime]
class jina.drivers.index.VectorIndexDriver(executor=None, method='add', *args, **kwargs)[source]

Bases: jina.drivers.index.BaseIndexDriver

Extracts embeddings and ids from the documents and forwards them to the executor. In case method is ‘delete’, the embeddings are ignored. If method is not ‘delete’, documents without content are filtered out.

runtime: Optional[ZEDRuntime]
class jina.drivers.index.KVIndexDriver(executor=None, method='add', *args, **kwargs)[source]

Bases: jina.drivers.index.BaseIndexDriver

Forwards pairs of serialized documents and ids to the executor.

runtime: Optional[ZEDRuntime]