def METHOD_NAME(pca, embeddings, cfg):
    """Apply PCA transformation to index dataset embeddings"""
    logging.info("Applying PCA transformation to entire index dataset")
    embeddings = np.array(pca.transform(embeddings), dtype=np.float32)
    emb_file = h5py.File(cfg.pca_embeddings_save_name, "w")
    emb_file.create_dataset(cfg.index_ds.name, data=embeddings)
    emb_file.close()
    return embeddings