Support filter knowledge by metadata. Co-authored-by: Joel <[email protected]> Co-authored-by: NFish <[email protected]>