Score roles per search agent, and run pull into extract, embed and score
embed stores one vector per open role; score rates every open role for every enabled agent from require and prefer gates, fit against the agent's intent, recency and company affinity, keeping gated rows with a reason. Schema v3 adds vectors and the cached intent vector. The page gets an agent order, the score on each row, and an Agents tab. Two starter agents in roles.yaml are imported once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4dfb8831aa
commit
bc60324fab
22 files changed
+1457
-44
No files matched your search
@@ -27,7 +27,7 @@ from typing import Any
|
||||
|
||||
from desk import modeltask
|
||||
from desk.modeltask import ModelTask
|
||||
from pipeline import NULL, RunContext, TASKS, Task, job
|
||||
from pipeline import NULL, RunContext, Task, job
|
||||
from roledesk.config import Config
|
||||
from roledesk.models import PERMITS, REMOTE, SENIORITIES, ExtractResult, Role
|
||||
from roledesk.storage import Store
|
||||
@@ -219,9 +219,6 @@ def run_batch(config: Config, store: Store, *, context: RunContext = NULL,
|
||||
|
||||
|
||||
def extract_task() -> Task:
|
||||
"""Finds nothing while `extract.enabled` is false, so the task, the
|
||||
button and the cascade stage are all no-ops with the switch off."""
|
||||
return replace(modeltask.of(TASK), label=TASK.label)
|
||||
|
||||
|
||||
#: `roledesk job extract` and the Jobs view's Extract. Finds nothing while
|
||||
#: `extract.enabled` is false, so pressing it with the switch off is a no-op.
|
||||
TASKS["extract"] = extract_task
|
||||
Reference in new issue
Block a user