Votes on roles and company affinity move to role_votes and agent_companies, one row per search agent, so two agents rank the same roles differently. The score gains taste, the cosine to mean(liked) - mean(passed) of the agent's votes, as newsdesk ranks articles. The API takes agent on roles, votes and companies and falls back to the default agent, the enabled one with the lowest id. Settings become Search agents (a list again, with New and Delete), Sources (job boards, company boards and runs with the message log, one section per plugin) and Account. Old paths answer 301 to their section. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
49 lines
2.7 KiB
HTML
49 lines
2.7 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Search agents — roledesk{% endblock %}
|
|
|
|
{# A list and a form: `static/agents.js` fills the list from `/api/agents`,
|
|
the form edits the picked agent, New clears it, Delete removes it with its
|
|
votes, liked companies and scores. #}
|
|
{% block content %}
|
|
<h1>Settings</h1>
|
|
{% include "settings/_tabs.html" %}
|
|
|
|
<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; the order menu on Roles picks one.</p>
|
|
|
|
<p id="agents-count" class="count" role="status"></p>
|
|
<div id="agents-list" class="crows"></div>
|
|
|
|
<form id="agent-form" class="agent-form" autocomplete="off">
|
|
<div class="row-between">
|
|
<h2 id="agent-form-title">New agent</h2>
|
|
<button type="button" id="a-new" class="secondary">New agent</button>
|
|
</div>
|
|
<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>
|
|
<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) or that lift it (prefer), as JSON: <code>[{"field": "country", "values": ["DK"], "mode": "require"}, {"field": "remote", "values": ["remote"], "mode": "prefer", "weight": 0.05}]</code>. Fields: place, country, remote, seniority, function, salary_min, currency, permit, languages, company. EU is a role open anywhere in Europe.</span></label>
|
|
</details>
|
|
<div class="agent-actions">
|
|
<button type="submit">Save and score</button>
|
|
<button type="button" id="a-delete" class="secondary" hidden>Delete</button>
|
|
</div>
|
|
<p id="agent-status" class="count" role="status"></p>
|
|
</form>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
<script src="{{ asset('agents.js') }}"></script>
|
|
{% endblock %}
|