jina.drivers.querylang.reverse

class jina.drivers.querylang.reverse.ReverseQL(traversal_paths=('r'), *args, **kwargs)[source]

Bases: jina.drivers.QuerySetReader, jina.drivers.ContextAwareRecursiveMixin, jina.drivers.BaseRecursiveDriver

Reverses the order of the provided docs.

This is often useful when the proceeding Pods require only a signal, not the full message.

Example :: - !Chunk2DocRankerDriver {} - !ReverseQL {}

will reverse the order of the documents returned by the Chunk2DocRankerDriver before sending them to the next Pod

runtime: Optional[ZEDRuntime]