Found this:
retrieved_documents_eval["score"] = (
retrieved_documents_eval.label[~retrieved_documents_eval.label.isna()] == "relevant"
).astype(int)Here: https://docs.arize.com/phoenix/retrieval/quickstart-retrieval#retrieval-chunk-evals
not mentioned in the evals page!