def METHOD_NAME(config):
    for source in config['sources']:
        qrels = source['qrels']
        source_name = source['name']
        index = source['index']
        docids_file = os.path.join(config['working_directory'], f'docids.{source_name}')
        logging.info(f'Extracting docvectors for {source_name} with Anserini...')
        cmd = f'cut -f 3 -d " " {qrels} | sort | uniq > {docids_file}'
        os.system(cmd)
        cmd = f'target/appassembler/bin/IndexUtils -index {index} -dumpDocVectors {docids_file} -docVectorWeight TF_IDF'
        os.system(cmd)