Rebuild the agent form as the fetch gate, the feed order, the cut and summarise, and name fetch text and the overrides as built
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fbc0f16c4a
commit
61aadff681
7 files changed
+185
-198
No files matched your search
+18
-16
@@ -1,5 +1,6 @@
|
||||
/* The Runs section of Sources: the "Run the pull now" button, and the
|
||||
* switches for the stages of a pull: the two that ask a model and enrich.
|
||||
* switches for the stages of a pull: extract, summarise and judge, which ask a
|
||||
* model, and fetch text, which reads a role's own page and asks none.
|
||||
*
|
||||
* The switches are `/api/stages`: one row per stage, drawn as the search
|
||||
* rows above are (`.srow`, `.switch`), and a switch is a PUT that stores the
|
||||
@@ -59,12 +60,15 @@
|
||||
|
||||
// ------------------------------------------------- what the model reads
|
||||
|
||||
// `depth` is whose setting says how many roles a stage reads: every stage
|
||||
// but summarise reads each agent's cut, summarise its own size.
|
||||
const DOES = {
|
||||
extract: "fills in country, seniority, salary and the like from what the posting says",
|
||||
summarise: "writes a short summary and tags for the best roles",
|
||||
judge: "scores the best roles against a search agent's CV, for CV match",
|
||||
enrich: "reads the own page of the best roles whose list gave no text",
|
||||
extract: "fills in location, remote area, seniority, languages and the like from what the posting says, for every role in the cut",
|
||||
summarise: "writes a short summary and tags for the top of the feed, and for every role you liked or saved",
|
||||
judge: "scores every role in the cut against a search agent's CV, for CV match",
|
||||
fetch_text: "reads the own page of every role in the cut that came without text, with no model, before extract and judge",
|
||||
};
|
||||
const NAMES = { fetch_text: "Fetch text" };
|
||||
|
||||
const el = (tag, className, text) => {
|
||||
const node = document.createElement(tag);
|
||||
@@ -106,20 +110,18 @@
|
||||
const row = el("div", "srow");
|
||||
if (!stage.on) row.dataset.muted = "true";
|
||||
const name = el("span", "name");
|
||||
name.append(el("span", "", stage.name[0].toUpperCase() + stage.name.slice(1)),
|
||||
name.append(el("span", "", NAMES[stage.name] || stage.name[0].toUpperCase() + stage.name.slice(1)),
|
||||
...(stage.model ? [el("span", "badge", stage.model)] : []));
|
||||
row.append(name, stageSwitch(stage, () => renderStages(stages)));
|
||||
const sub = el("span", "sub");
|
||||
if (stage.name === "enrich") {
|
||||
/* Global, unlike the model stages: `enrich.top` and `enrich.min_score`. */
|
||||
sub.append(`${DOES[stage.name]}. How many it reads is set for every agent alike by `
|
||||
+ "enrich.top and enrich.min_score in config.yaml");
|
||||
} else {
|
||||
sub.append(`${DOES[stage.name]}. How deep it reads is set per search agent, under `);
|
||||
const agents = el("a", "", "Search agents");
|
||||
agents.href = "/settings/agents";
|
||||
sub.append(agents);
|
||||
}
|
||||
/* Depth is per search agent: the cut for fetch text, extract and judge,
|
||||
summarise's own size. Fetch text keeps per_board, per_run and
|
||||
retry_days in config.yaml, which only bound its load on a host. */
|
||||
sub.append(`${DOES[stage.name]}. How many it reads is each search agent's `
|
||||
+ `${stage.name === "summarise" ? "summarise size" : "cut"}, under `);
|
||||
const agents = el("a", "", "Search agents");
|
||||
agents.href = "/settings/agents";
|
||||
sub.append(agents);
|
||||
sub.append(stage.source === "config"
|
||||
? ". Following config.yaml until this switch is used."
|
||||
: ".");
|
||||
|
||||
Reference in new issue
Block a user