jina.drivers.querylang.reverse¶

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

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