Filtering variants based on custom knowledge bases