Split the agent form's fetch gate into world, location, role exclusion and role fetch, and name the analytics filter and the feed score weights
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
744d14160d
commit
b6e27fcb26
3 files changed
+86
-70
No files matched your search
+28
-25
@@ -3,17 +3,19 @@
|
||||
*
|
||||
* Every agent from `/api/agents` is a card, newest first: its name, its
|
||||
* switch, its prompts, its gates in words, its weights, and a link to the
|
||||
* Roles tab in its order. The prompts are the body, since fit is measured
|
||||
* against the one a role fits best; the weights only share out the terms.
|
||||
* The form edits the prompts as rows, and the fetch gate in three parts: the
|
||||
* region (the scope select), the place (a short list of lines a role passes by
|
||||
* matching any one of: countries, towns, remote) and the role (the fetch terms
|
||||
* and the titles to leave out), over a row per remaining rule under Advanced;
|
||||
* a gate the three parts cannot say lands in a row, so a load and a save lose
|
||||
* nothing. A gate is a field, values and a mode (must, one of, not), with no
|
||||
* weight. After it come the feed order (the four weights of the final score and
|
||||
* the CV match weights), the cut (the best N by fit and the best M by CV
|
||||
* closeness, each with a minimum level) and the size of summarise. Edit turns a card
|
||||
* Roles tab in its order. The prompts are the body, since prompt closeness is
|
||||
* measured against the one a role is closest to; the weights only share out the terms.
|
||||
* The form edits the prompts as rows, and the fetch gate in four parts, in the
|
||||
* ADR's order: the world (the scope select), the location (a short list of
|
||||
* lines a role passes by matching any one of: countries, towns, remote), the
|
||||
* role exclusion (the titles to leave out) and the role fetch (the fetch
|
||||
* terms), over a row per remaining rule under Advanced; a gate the four parts
|
||||
* cannot say lands in a row, so a load and a save lose nothing. A gate is a
|
||||
* field, values and a mode (must, one of, not), with no weight. After it come
|
||||
* the analytics filter (the best N by prompt closeness and the best M by CV
|
||||
* closeness, each with a minimum level), the want feed score weights (prompt
|
||||
* closeness, newness, company like, job like), the CV match weights and the
|
||||
* size of summarise. Edit turns a card
|
||||
* into the form from the page's `<template>`, in place, and New agent puts a
|
||||
* blank card on top in the same state. One card edits at a time, so the
|
||||
* form's ids stay unique. Votes, liked companies and scores are the agent's,
|
||||
@@ -47,13 +49,14 @@
|
||||
const DEFAULT_WEIGHTS = { fit: 0.6, recency: 0.2, affinity: 0.2, taste: 0.2,
|
||||
cv_skills: 30, cv_experience: 25, cv_career: 30 };
|
||||
// What the models read after a pull, per agent (`app.models.Limits`): the
|
||||
// cut is the best `cut_fit_top` roles by fit at `cut_fit_min` or more, then
|
||||
// the best `cut_cv_top` by CV closeness at `cut_cv_min` or more that the
|
||||
// first list leaves out, and every role liked or saved. Fetch text, extract
|
||||
// and judge read the cut; summarise reads the top `summarise_top` of the
|
||||
// feed and the roles liked or saved.
|
||||
// analytics filter is the best `cut_fit_top` roles by prompt closeness at
|
||||
// `cut_fit_min` or more, then the best `cut_cv_top` by CV closeness at
|
||||
// `cut_cv_min` or more that the first list leaves out, and every role liked
|
||||
// or saved: the cut. Fetch text, extract and judge read the cut; summarise
|
||||
// reads the top `summarise_top` of each feed order, want and match, and the
|
||||
// roles liked or saved.
|
||||
const DEFAULT_LIMITS = { cut_fit_top: 500, cut_fit_min: 0.6, cut_cv_top: 150, cut_cv_min: 0.6,
|
||||
summarise_top: 50 };
|
||||
summarise_top: 30 };
|
||||
// The levels of a language, the order of the server's ladder, and how big a
|
||||
// CV file the browser reads into the box.
|
||||
const LEVELS = ["basic", "conversational", "professional", "fluent", "native"];
|
||||
@@ -233,7 +236,7 @@
|
||||
|
||||
function weightsLine(row) {
|
||||
const w = Object.assign({}, DEFAULT_WEIGHTS, row.weights);
|
||||
return `fit ${w.fit} · newness ${w.recency} · companies ${w.affinity} · liked ${w.taste}`
|
||||
return `prompt closeness ${w.fit} · newness ${w.recency} · company like ${w.affinity} · job like ${w.taste}`
|
||||
+ ` · CV match: skills ${w.cv_skills}, experience ${w.cv_experience}, career ${w.cv_career}`;
|
||||
}
|
||||
|
||||
@@ -299,18 +302,18 @@
|
||||
return sentences.join(" ");
|
||||
}
|
||||
|
||||
// What the models read after a pull: the cut, then the stages that read
|
||||
// it, then summarise's own size. A stage that is off says so, with a link to
|
||||
// What the models read after a pull: the analytics filter's cut, then the
|
||||
// stages that read it, then summarise's own size. A stage that is off says so, with a link to
|
||||
// its switch under Runs: the numbers are only what it would read once it is
|
||||
// on. The stage names are those of `/api/stages`.
|
||||
function limitsLine(row) {
|
||||
const l = Object.assign({}, DEFAULT_LIMITS, row.limits);
|
||||
const p = el("p", "agent-limits");
|
||||
const lists = [];
|
||||
if (l.cut_fit_top) lists.push(`the best ${l.cut_fit_top} by fit at ${l.cut_fit_min} or more`);
|
||||
if (l.cut_cv_top) lists.push(`the best ${l.cut_cv_top} by closeness to the CV at ${l.cut_cv_min} or more`);
|
||||
if (l.cut_fit_top) lists.push(`the best ${l.cut_fit_top} by prompt closeness at ${l.cut_fit_min} or more`);
|
||||
if (l.cut_cv_top) lists.push(`the best ${l.cut_cv_top} by CV closeness at ${l.cut_cv_min} or more`);
|
||||
const cut = lists.length ? `${lists.join(", then ")}, and liked and saved roles` : "liked and saved roles only";
|
||||
p.append(`The cut: ${cut}.`);
|
||||
p.append(`Analytics filter: ${cut}.`);
|
||||
const off = (name, would) => {
|
||||
const a = link("/settings/sources#stages", `${name} is off`);
|
||||
a.title = "Switch it on under Runs.";
|
||||
@@ -323,7 +326,7 @@
|
||||
p.append(` ${said[0].toUpperCase()}${said.slice(1)} ${on.length > 1 ? "read" : "reads"} it`);
|
||||
}
|
||||
for (const [key, name] of reads) if (stageOn[key] === false) off(name, "reads the cut");
|
||||
const summarised = `the top ${l.summarise_top} of the feed and liked and saved roles`;
|
||||
const summarised = `the top ${l.summarise_top} of each feed order and liked and saved roles`;
|
||||
if (stageOn.summarise === false) off("summarise", `summarises ${summarised}`);
|
||||
else p.append(` · summarises ${summarised}`);
|
||||
return p;
|
||||
@@ -345,7 +348,7 @@
|
||||
|
||||
const prompts = promptsOf(row).filter((p) => p.text.trim());
|
||||
if (!prompts.length) {
|
||||
div.appendChild(el("p", "agent-intent empty", "Nothing described yet, so fit has nothing to measure against. Edit says what this agent looks for."));
|
||||
div.appendChild(el("p", "agent-intent empty", "Nothing described yet, so prompt closeness has nothing to measure against. Edit says what this agent looks for."));
|
||||
}
|
||||
for (const prompt of prompts) {
|
||||
// A lone prompt named after its agent, as a migrated intent is, says its name once.
|
||||
|
||||
Reference in new issue
Block a user