def extract_category()

in prompts/web_samples/filter_and_classify_clusters.py [0:0]


def extract_category(example):
    summary = example["summary"]
    category = summary.split(". Educational")[0].strip()
    score = summary.split(" Educational score: ")[1].strip()
    return {"category": category, "educational_score": score}