class jina.drivers.querylang.filter.FilterQL(lookups, *args, **kwargs)[source]

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

Filters incoming docs by evaluating a series of lookup rules.

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

Example :: - !FilterQL


lookups: {modality: mode2}

  • !EncodeDriver

    method: encode

ensures that the EncodeDriver will only get documents which modality field value is mode2 by filtering those documents at the specific levels that do not comply with this condition