country_of folds with _place_fold (ł, đ, ø, æ map to ASCII; _fold keeps building company_key unchanged), knows every ISO country by English name and European ones by their own, and the cities among the 150 most frequent unresolved places on the live data. Within one location a country beats a US state or Canadian province, which beats a city. A state code that is also an ISO code counts as the state only when the line names a US place. Several countries, all European, are EU; otherwise ''. A code in parentheses is read when no name matched. Migration 12 recomputes country from place for roles extract has not read and whose board sent no country in raw. On the live data: open roles with no country 2,827 -> 1,183 of 16,841; 1,705 open roles change, 48 from a code. Co-Authored-By: Claude Opus <noreply@anthropic.com>
59 lines
3.9 KiB
HTML
59 lines
3.9 KiB
HTML
{% extends "settings/_layout.html" %}
|
|
{% block title %}Search agents — roledesk{% endblock %}
|
|
|
|
{# A card per agent: `static/agents.js` fills the list from `/api/agents`,
|
|
newest first. A card shows what the agent looks for, its switch and its
|
|
weights; Edit turns that card into the form below, in place, and New puts
|
|
a blank one on top. The form is a `<template>` because only one card edits
|
|
at a time, so its ids stay unique. #}
|
|
{% block content %}
|
|
<h1>Search agents</h1>
|
|
<p class="lede">A search agent is what the Roles tab ranks by: describe the role, weigh the terms, and it scores every open role. Several agents rank the same roles differently, each with its own votes and liked companies; Viewing as on Roles picks one, and its votes are that agent's.</p>
|
|
|
|
<div class="agents-head">
|
|
<p id="agents-count" class="count" role="status"></p>
|
|
<button type="button" id="a-new">New agent</button>
|
|
</div>
|
|
<div id="agents-list" class="agent-cards"></div>
|
|
|
|
<template id="agent-form-template">
|
|
<form id="agent-form" class="agent-form" autocomplete="off">
|
|
<h2 id="agent-form-title">New agent</h2>
|
|
<label>Name <input type="text" id="a-name" required placeholder="My search"></label>
|
|
<label>What you are looking for
|
|
<textarea id="a-intent" rows="7" placeholder="Senior backend engineer. Python and Go services, PostgreSQL, APIs on Kubernetes. Wants ownership of production systems in a product company."></textarea>
|
|
<span class="hint">A paragraph of your CV, or the role in your own words: the work, the stack, the level.</span></label>
|
|
<fieldset class="weights">
|
|
<legend>How much each counts</legend>
|
|
<label>Fit to the text <input type="number" id="a-fit" min="0" step="0.05" value="0.6"></label>
|
|
<label>Newness <input type="number" id="a-recency" min="0" step="0.05" value="0.2"></label>
|
|
<label>Companies you like <input type="number" id="a-affinity" min="0" step="0.05" value="0.2"></label>
|
|
<label>Roles you liked <input type="number" id="a-taste" min="0" step="0.05" value="0.2"></label>
|
|
</fieldset>
|
|
<fieldset class="weights limits">
|
|
<legend>What the model reads</legend>
|
|
<label>Extract the best <input type="number" id="a-extract-top" min="0" step="10" value="500"></label>
|
|
<label>down to a score of <input type="number" id="a-extract-min" min="0" max="1" step="0.05" value="0.3"></label>
|
|
<label>Summarise the best <input type="number" id="a-summarise-top" min="0" step="5" value="30"></label>
|
|
<label>down to a score of <input type="number" id="a-summarise-min" min="0" max="1" step="0.05" value="0.5"></label>
|
|
</fieldset>
|
|
<span class="hint">Every pull scores every open role for free; these bound what the model then reads, per agent. The count is the backstop, the score the real stop. A new role with the worst fit scores about 0.27, a good one 0.6 or more.</span>
|
|
<details class="advanced">
|
|
<summary>Advanced</summary>
|
|
<label>Gates
|
|
<textarea id="a-gates" class="code" rows="6" spellcheck="false">[]</textarea>
|
|
<span class="hint">Rules a role must meet (require), must meet one of (any), or that lift it (prefer), as JSON: <code>[{"field": "country", "values": ["DK"], "mode": "any"}, {"field": "remote", "values": ["remote"], "mode": "any"}, {"field": "seniority", "values": ["senior", "staff"], "mode": "prefer", "weight": 0.05}]</code> is "in Denmark, or remote". Fields: place, country, remote, seniority, function, salary_min, currency, permit, languages, company. EU is a role in Europe that names no single country. A rule only rejects a role whose column is filled; an empty one ranks until extract reads the posting.</span></label>
|
|
</details>
|
|
<div class="agent-actions">
|
|
<button type="submit">Save and score</button>
|
|
<button type="button" id="a-cancel" class="secondary">Cancel</button>
|
|
<button type="button" id="a-delete" class="secondary">Delete</button>
|
|
</div>
|
|
</form>
|
|
</template>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
<script src="{{ asset('agents.js') }}"></script>
|
|
{% endblock %}
|