def find_field_to_chunk(entity_dict: Dict, field_sizes: Dict[str, int]) -> Tuple[str, int]:
    """Find the largest chunkable field that contributes most to entity size.

    Args:
        entity_dict: Entity dictionary
        field_sizes: Dictionary of field sizes

    Returns:
        Tuple of (field_name, field_size)
    """
    largest_field = None
    largest_field_size = 0

    for field_name, field_size in field_sizes.items():
        if (
            field_name not in NON_CHUNKABLE_FIELDS
            and isinstance(entity_dict[field_name], str)
            and field_size > largest_field_size
        ):
            largest_field = field_name
            largest_field_size = field_size

    return largest_field, largest_field_size
Find the largest chunkable field that contributes most to entity size.

    Args:
        entity_dict: Entity dictionary
        field_sizes: Dictionary of field sizes

    Returns:
        Tuple of (field_name, field_size)
    
backend/airweave/platform/transformers/entity_field_chunker.py