def METHOD_NAME(
    indexing_pipeline: Pipeline, querying_pipeline: Pipeline, documents_directory: Path, eval_set: Path
) -> Dict:
    """
    Benchmark indexing and querying on retriever pipelines on a given dataset.
    :param indexing_pipeline: Pipeline for indexing documents.
    :param querying_pipeline: Pipeline for querying documents.
    :param documents_directory: Directory containing files to index.
    :param eval_set: Path to evaluation set.
    """
    # Indexing
    indexing_results = benchmark_indexing(indexing_pipeline, documents_directory)
    # Querying
    querying_results = benchmark_querying(querying_pipeline, eval_set)
    results = {"indexing": indexing_results, "querying": querying_results}
    doc_store = indexing_pipeline.get_document_store()
    doc_store.delete_index(index="document")
    return results