File size: 321 Bytes
1e7bf9e
 
 
 
 
 
 
1
2
3
4
5
6
7
8
from pathlib import Path

from core.crew_explainer import generate_explanation

def explain_candidate(jd_path: str, match_path: str, rank: int | None = None) -> dict:
    # You can add caching later if you want (by match_path hash)
    return generate_explanation(jd_path=jd_path, match_path=match_path, top_k_rank=rank)