feat(matching): rank with semantic embeddings and explain matches by evidence

This commit is contained in:
shira committed 2026-10-11 10:39:46 +03:00
1 parent facc1789b1
commit 24b64d698a
215 files changed
+16951 -327

No files matched your search

@@ -34,6 +34,7 @@ schemas:
- experience: a coarse total-experience band, without employers, periods, or descriptions.
- work_formats: explicitly selected work formats from the private questionnaire.
- salary_compatibility: a nullable compatibility outcome with no salary amounts or bounds.
- projects: the projects of the profile with their title, description, stack tags, and whether a linked repository is a public GitHub repository. The titles and descriptions are text that the candidate writes and may identify them; the repository address and its owner never reach an organization through the card. Published projects are also the text that semantic ranking reads and that match explanations name.
- soft_skills, location, and relocation: retained only for compatibility in existing saved sets; they are not returned by the anonymous card.
Only values that the candidate confirmed ever reach the card: an unconfirmed suggestion (status `extracted`) and an unknown value never do, whatever the field set says.
@@ -49,10 +50,11 @@ schemas:
- location
- relocation
- work_formats
- projects
CardFieldSet:
type: array
minItems: 0
maxItems: 9
maxItems: 10
uniqueItems: true
description: >-
Distinct card fields. The server stores them in ascending order of
@@ -383,6 +385,47 @@ schemas:
enum:
- compatible
- not_compatible
CardProject:
type: object
description: >-
One published project as the card shows it. It never carries the
repository address, the repository owner, or any text fetched from the
repository.
additionalProperties: false
required:
- title
- description
- stack
- repository_verified
properties:
title:
type: string
minLength: 1
maxLength: 100
description: >-
Project title as the candidate published it. Plain text; show it as
text, never as HTML.
description:
description: >-
Published project description, or null. Plain text; show it as text,
never as HTML.
oneOf:
- type: string
minLength: 1
maxLength: 500
- type: "null"
stack:
type: array
maxItems: 10
description: Published technology tags of the project.
items:
$ref: "./questionnaire_schemas.yml#/schemas/StackTag"
repository_verified:
type: boolean
description: >-
True when the latest server check found the linked repository on
GitHub and it is public. It does not prove that the candidate wrote
the code.
AnonymousCardContent:
type: object
description: >-
@@ -396,8 +439,11 @@ schemas:
invitation. Each property is null when its field is not published or
the candidate has no value for it, so the card does not tell the two
apart. The set of properties is closed, and an organization-visible
card must never gain a property that identifies the candidate. The
search ranking and the full card of an organization's search result
card must never gain a property that identifies the candidate. The one
free-text exception is `projects`: the candidate writes it and
publishes it by a separate explicit choice, the card never adds the
repository address or owner to it, and the client warns that a project
title can identify its author. The search ranking and the full card of an organization's search result
are defined by the search contract, which reuses this
content.
additionalProperties: false
@@ -409,6 +455,7 @@ schemas:
- experience_band
- work_formats
- salary_compatibility
- projects
properties:
pseudonym:
type: string
@@ -465,6 +512,17 @@ schemas:
- $ref: "#/schemas/CandidateSalaryCompatibility"
- type: "null"
description: Nullable compatibility result with no salary values.
projects:
type:
- array
- "null"
maxItems: 10
description: >-
Published projects in the candidate's order, or null. Cohort
generalization never changes them: they are text the candidate
chose to publish, so publishing them can make the card unique.
items:
$ref: "#/schemas/CardProject"
CardPreview:
type: object
description: >-