Bring the Python side to the ADR: the judge scores 0 to 10 with the cap at 4 and migration 33 clears every judgement, summarise reads the top 30 of the want and the match order, a hidden company's roles are never in the feed, and the company switch is called All locations.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6cad9713ac
commit
6d82287402
27 files changed
+390
-247
No files matched your search
+24
-17
@@ -1008,11 +1008,12 @@ def language_flag(required: list[RoleLanguage],
|
||||
return "", ""
|
||||
|
||||
|
||||
#: What career counts as at most when a posting breaks one of the agent's
|
||||
#: must-haves: the top of the rubric's 0-39 band for a dead end. The model
|
||||
#: What career counts as at most, on the judge's 0 to 10, when a posting
|
||||
#: breaks one of the agent's must-haves: the foot of the rubric's 4-5 band,
|
||||
#: a decent job that does not build toward the person's goals. The model
|
||||
#: reports whether each must-have is met; this cap is applied in code, when a
|
||||
#: role is served (`cv_score`, `Store.judgement`, `store._cv_sql`).
|
||||
BROKEN_CAP = 39
|
||||
BROKEN_CAP = 4
|
||||
|
||||
#: A must-have's verdict, as the judge answers it.
|
||||
MUST_VERDICTS = ("met", "broken", "unclear")
|
||||
@@ -1040,17 +1041,18 @@ def capped_career(career: int, broken: int = 0) -> int:
|
||||
|
||||
def cv_score(skills: int, experience: int, career: int,
|
||||
weights: Weights | None = None, broken: int = 0) -> float | None:
|
||||
"""The one number of a CV match, 0 to 100: the three numbers of the
|
||||
judge averaged by the agent's `cv_skills`, `cv_experience` and
|
||||
`cv_career` weights (30, 25 and 30 by default), career as
|
||||
`capped_career` has it. None when all three weights are 0."""
|
||||
"""The one number of a CV match, 0 to 100 for sorting and display: the
|
||||
judge's three numbers, each 0 to 10, averaged by the agent's
|
||||
`cv_skills`, `cv_experience` and `cv_career` weights (30, 25 and 30 by
|
||||
default), career as `capped_career` has it, times 10. None when all
|
||||
three weights are 0."""
|
||||
w = weights or Weights()
|
||||
total = w.cv_skills + w.cv_experience + w.cv_career
|
||||
if not total:
|
||||
return None
|
||||
career = capped_career(career, broken)
|
||||
return round((w.cv_skills * skills + w.cv_experience * experience
|
||||
+ w.cv_career * career) / total, 1)
|
||||
return round(10 * (w.cv_skills * skills + w.cv_experience * experience
|
||||
+ w.cv_career * career) / total, 1)
|
||||
|
||||
|
||||
class Must(Model):
|
||||
@@ -1064,8 +1066,9 @@ class Must(Model):
|
||||
|
||||
class Judgement(Model):
|
||||
"""What `judge` read of one role for one agent (`role_judgements`): the
|
||||
three dimensions 0 to 100 as the model gave them, `cv_score`
|
||||
(`cv_score`) and 1 to 3 strengths and gaps grounded in the posting.
|
||||
three dimensions 0 to 10 as the model gave them, `cv_score`
|
||||
(`cv_score`, 0 to 100) and 1 to 3 strengths and gaps grounded in the
|
||||
posting.
|
||||
`musts` is the verdict on each must-have and `broken` how many are
|
||||
broken; any makes `career_capped` the lower of `career` and
|
||||
`BROKEN_CAP`. `cv_score` and `career_capped` are not read from the
|
||||
@@ -1387,7 +1390,8 @@ class Company(Model):
|
||||
#: not on that list.
|
||||
hand_reason: str = ""
|
||||
#: The two fetch overrides (`app/jobs/reach.py`), global rather than an
|
||||
#: agent's, since fetching is shared. `all_countries` 1: every big board
|
||||
#: agent's, since fetching is shared. `all_countries` 1 (All locations,
|
||||
#: as the switch is called; the column keeps its name): every big board
|
||||
#: of the company is read with the agents' wide reach, Europe today,
|
||||
#: rather than their places. `all_roles` 1: no role-type narrowing, no
|
||||
#: fetch terms today, on any of its boards.
|
||||
@@ -1459,7 +1463,7 @@ class Gate(Model):
|
||||
fails it (the row is kept with the reason); the `any` gates together are
|
||||
one group a role must match at least one of ("in Denmark, or remote");
|
||||
`exclude` gates a role that matches any of its values ("title account
|
||||
executive"). A company set to All countries skips the `any` group and one
|
||||
executive"). A company set to All locations skips the `any` group and one
|
||||
set to All roles skips the `exclude` gates on `title` (`score.failed_gates`).
|
||||
A gate rejects on evidence only: a role whose column is empty is not
|
||||
rejected, since `extract` fills the column later for the roles in the
|
||||
@@ -1497,14 +1501,16 @@ class Limits(Model):
|
||||
leaves out, then every role liked or saved. Both levels are calibrated
|
||||
(`score.scale`) with the company's affinity as a small bonus, so a
|
||||
minimum means the same in every run. For a broad agent the count stops a
|
||||
list, for a narrow one the minimum. Summarise reads the best
|
||||
`summarise_top` by final score, and every role liked or saved."""
|
||||
list, for a narrow one the minimum. Summarise reads the top
|
||||
`summarise_top` of the want feed score (the score order) and the top
|
||||
`summarise_top` of the match order (CV match, then CV closeness), so at
|
||||
most twice as many, and every role liked or saved."""
|
||||
|
||||
cut_fit_top: int = Field(500, ge=0)
|
||||
cut_fit_min: float = Field(0.6, ge=0, le=1)
|
||||
cut_cv_top: int = Field(150, ge=0)
|
||||
cut_cv_min: float = Field(0.6, ge=0, le=1)
|
||||
summarise_top: int = Field(50, ge=0)
|
||||
summarise_top: int = Field(30, ge=0)
|
||||
|
||||
|
||||
class Prompt(Model):
|
||||
@@ -1616,7 +1622,8 @@ class Candidate(Model):
|
||||
uid: str
|
||||
posted_at: str
|
||||
affinity: int = 0
|
||||
#: `companies.all_countries`: the `any` group (the place part) is skipped.
|
||||
#: `companies.all_countries`, All locations: the `any` group (the place
|
||||
#: part) is skipped.
|
||||
all_countries: bool = False
|
||||
#: `companies.all_roles`: the `exclude` gates on `title` are skipped.
|
||||
all_roles: bool = False
|
||||
|
||||
Reference in new issue
Block a user