def from_dict(
        cls,
        filter_dict: Dict,
    ) -> "ScalarMetadataFilter":
        """
        Create ScalarMetadataFilter from dictionary.

        Args:
            filter_dict: Dict with key, value and FilterOperatorFunction.

        """
        return ScalarMetadataFilter.parse_obj(filter_dict)

        Create ScalarMetadataFilter from dictionary.

        Args:
            filter_dict: Dict with key, value and FilterOperatorFunction.

        
llama-index-integrations/vector_stores/llama-index-vector-stores-milvus/llama_index/vector_stores/milvus/utils.py