def METHOD_NAME(pipeline: Pipeline) -> bool:
    """
    Check if a pipeline contains a Retriever component.
    """
    components = [comp for comp in pipeline.components.values()]
    return any(isinstance(comp, BaseRetriever) for comp in components)