Spaces:
Running
Running
Update Guidebook.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960AI RECRUITING ASSISTANT β TABULAR PIPELINE (SWIM-LANE VIEW)+------+-------------------+----------------------------+------------------------------+------------------------------+| Step | Recruiter / Input | Python / Deterministic | LLM (Groq) | Storage / Output |+------+-------------------+----------------------------+------------------------------+------------------------------+| 1 | Upload culture | Chunk + embed | β | culture_store (indexed) || | documents | | | |+------+-------------------+----------------------------+------------------------------+------------------------------+| 2 | Upload resumes | Anonymize β chunk β embed | β | resume_store (indexed) || | | | | |+------+-------------------+----------------------------+------------------------------+------------------------------+| 3 | Paste JD + Run | Send JD to LLM | Extract required skills | required_skills JSON || | | | + evidence quotes | |+------+-------------------+----------------------------+------------------------------+------------------------------+| 4 | β | Verify requirements | β | quote-verified list || | | (quote/name/drop) | | + debug report |+------+-------------------+----------------------------+------------------------------+------------------------------+| 5 | β | Retrieve culture (k=3) | β | culture_context || | | | | |+------+-------------------+----------------------------+------------------------------+------------------------------+| 6 | β | β | Generate culture attributes | cultural_attributes JSON || | | | (job-performance aligned) | |+------+-------------------+----------------------------+------------------------------+------------------------------+| 7 | β | Retrieve resumes (k=10) | β | resume chunks by resume_id || | | Group by candidate | | |+------+-------------------+----------------------------+------------------------------+------------------------------+| 8 | β | β | Propose culture matches | raw culture-match JSON || | | | (direct/inferred + quotes) | |+------+-------------------+----------------------------+------------------------------+------------------------------+| 9 | β | Cleanup + weight scoring | β | culture_score + evidence || | | (direct=1.0, inferred=0.5) | | |+------+-------------------+----------------------------+------------------------------+------------------------------+| 10 | β | β | Propose skill matches | raw skills-match JSON || | | | + evidence snippets | |+------+-------------------+----------------------------+------------------------------+------------------------------+| 11 | β | Compute missing + score | β | skills_score + missing list || | | (verified reqs only) | | |+------+-------------------+----------------------------+------------------------------+------------------------------+| 12 | β | β | Infer implied skills | implied (NOT SCORED) || | | | + quotes + phone questions | follow-ups |+------+-------------------+----------------------------+------------------------------+------------------------------+| 13 | β | β | Verify evidence (β/β) | factuality report || | | | | |+------+-------------------+----------------------------+------------------------------+------------------------------+| 14 | β | β | Generate recommendation | final recommendation || | | | (policy constrained) | |+------+-------------------+----------------------------+------------------------------+------------------------------+| 15 | β | Trigger self-correction | Revise if needed | corrected recommendation || | | (if unverified claims) | | + revision note |+------+-------------------+----------------------------+------------------------------+------------------------------+| 16 | β | β | Run bias audit | bias indicators + guidance || | | | (JD + analyses + decision) | |+------+-------------------+----------------------------+------------------------------+------------------------------+| 17 | Review output | Assemble final report | β | full candidate report || | | | | (scores, audits, evidence) |+------+-------------------+----------------------------+------------------------------+------------------------------+Current Retrieval Parameters:- Culture store: k = 3 chunks (JD query)- Resume store: k = 10 chunks (JD query)1234567891011121314151617181920212223242526## End-to-End Pipeline (Swim-Lane View)| Step | Recruiter / Input | Python / Deterministic Logic | LLM (Groq) | Storage / Output ||------|------------------|------------------------------|-----------|------------------|| 1 | Upload culture documents | Chunk + embed | β | `culture_store` (indexed) || 2 | Upload resumes | Anonymize β chunk β embed | β | `resume_store` (indexed) || 3 | Paste JD + Run | Send JD to LLM | Extract required skills + evidence quotes | `required_skills` JSON || 4 | β | Verify requirements (quote / name-only / dropped) | β | Verified list + debug report || 5 | β | Retrieve culture context (k=3) | β | `culture_context` || 6 | β | β | Generate culture attributes (job-performance aligned) | `cultural_attributes` JSON || 7 | β | Retrieve resume chunks (k=10), group by `resume_id` | β | Candidate chunks || 8 | β | β | Propose culture matches (direct/inferred + quotes) | Raw culture-match JSON || 9 | β | Cleanup + weighted scoring (direct=1.0, inferred=0.5) | β | Culture score + evidence || 10 | β | β | Propose skill matches + evidence snippets | Raw skills-match JSON || 11 | β | Compute missing list + skills score (verified reqs only) | β | Skills score + missing list || 12 | β | β | Infer implied skills (NOT SCORED) + phone questions | Implied follow-ups || 13 | β | β | Verify evidence (β/β) | Factuality report || 14 | β | β | Generate recommendation (policy constrained) | Final recommendation || 15 | β | Trigger self-correction (if needed) | Revise flagged claims only | Corrected recommendation || 16 | β | β | Run bias audit (JD + analyses + decision) | Bias indicators + guidance || 17 | Review output | Assemble final report | β | Full candidate report |### Current Retrieval Parameters- Culture store: `k = 3` chunks (JD query)- Resume store: `k = 10` chunks (JD query)
Guidebook.md+24-58