shortlist-ai 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- shortlist_ai-0.1.0/.github/workflows/ci.yml +22 -0
- shortlist_ai-0.1.0/.github/workflows/release.yml +67 -0
- shortlist_ai-0.1.0/.gitignore +10 -0
- shortlist_ai-0.1.0/LICENSE +21 -0
- shortlist_ai-0.1.0/PKG-INFO +599 -0
- shortlist_ai-0.1.0/README.md +572 -0
- shortlist_ai-0.1.0/eval/README.md +41 -0
- shortlist_ai-0.1.0/eval/heldout/README.md +49 -0
- shortlist_ai-0.1.0/eval/heldout/jobs/azure_security_engineer.json +40 -0
- shortlist_ai-0.1.0/eval/heldout/jobs/ml_engineer.json +40 -0
- shortlist_ai-0.1.0/eval/heldout/jobs/sre_kubernetes.json +40 -0
- shortlist_ai-0.1.0/eval/heldout/labels.json +15 -0
- shortlist_ai-0.1.0/eval/heldout/resumes/h01_keiko_tanaka.md +21 -0
- shortlist_ai-0.1.0/eval/heldout/resumes/h02_daniel_okoye.md +20 -0
- shortlist_ai-0.1.0/eval/heldout/resumes/h03_sofia_marino.md +19 -0
- shortlist_ai-0.1.0/eval/heldout/resumes/h04_chloe_bennett.md +20 -0
- shortlist_ai-0.1.0/eval/heldout/resumes/h05_hana_kowalski.md +21 -0
- shortlist_ai-0.1.0/eval/heldout/resumes/h06_ryan_brooks.md +20 -0
- shortlist_ai-0.1.0/eval/heldout/resumes/h07_lucas_fernandez.md +16 -0
- shortlist_ai-0.1.0/eval/heldout/verdicts.json +66 -0
- shortlist_ai-0.1.0/eval/heldout_years/README.md +47 -0
- shortlist_ai-0.1.0/eval/heldout_years/jobs/backend_engineer.json +30 -0
- shortlist_ai-0.1.0/eval/heldout_years/jobs/fpa_analyst.json +30 -0
- shortlist_ai-0.1.0/eval/heldout_years/jobs/soc_analyst.json +25 -0
- shortlist_ai-0.1.0/eval/heldout_years/labels.json +15 -0
- shortlist_ai-0.1.0/eval/heldout_years/resumes/y01_teresa_alvarez.md +16 -0
- shortlist_ai-0.1.0/eval/heldout_years/resumes/y02_kwame_mensah.md +21 -0
- shortlist_ai-0.1.0/eval/heldout_years/resumes/y03_ines_carvalho.md +23 -0
- shortlist_ai-0.1.0/eval/heldout_years/resumes/y04_arjun_nair.md +16 -0
- shortlist_ai-0.1.0/eval/heldout_years/resumes/y05_leila_ahmadi.md +20 -0
- shortlist_ai-0.1.0/eval/heldout_years/resumes/y06_marek_novak.md +19 -0
- shortlist_ai-0.1.0/eval/heldout_years/resumes/y07_olivia_brennan.md +20 -0
- shortlist_ai-0.1.0/eval/heldout_years/resumes/y08_tomasz_wojcik.md +20 -0
- shortlist_ai-0.1.0/eval/heldout_years/resumes/y09_noor_rahman.md +18 -0
- shortlist_ai-0.1.0/eval/heldout_years/verdicts.json +98 -0
- shortlist_ai-0.1.0/eval/heldout_years2/README.md +48 -0
- shortlist_ai-0.1.0/eval/heldout_years2/jobs/clinical_research_coordinator.json +55 -0
- shortlist_ai-0.1.0/eval/heldout_years2/jobs/devops_engineer.json +55 -0
- shortlist_ai-0.1.0/eval/heldout_years2/jobs/ux_designer.json +55 -0
- shortlist_ai-0.1.0/eval/heldout_years2/labels.json +16 -0
- shortlist_ai-0.1.0/eval/heldout_years2/resumes/z01_sipho_dlamini.md +17 -0
- shortlist_ai-0.1.0/eval/heldout_years2/resumes/z02_ana_lucia_ferreira.md +21 -0
- shortlist_ai-0.1.0/eval/heldout_years2/resumes/z03_jonah_whitaker.md +19 -0
- shortlist_ai-0.1.0/eval/heldout_years2/resumes/z04_camille_dubois.md +20 -0
- shortlist_ai-0.1.0/eval/heldout_years2/resumes/z05_priyanka_iyer.md +17 -0
- shortlist_ai-0.1.0/eval/heldout_years2/resumes/z06_grace_mwangi.md +21 -0
- shortlist_ai-0.1.0/eval/heldout_years2/resumes/z07_daniel_osei.md +19 -0
- shortlist_ai-0.1.0/eval/heldout_years2/resumes/z08_rosa_delgado.md +18 -0
- shortlist_ai-0.1.0/eval/heldout_years2/resumes/z09_ethan_brooks.md +15 -0
- shortlist_ai-0.1.0/eval/heldout_years2/verdicts.json +97 -0
- shortlist_ai-0.1.0/eval/heldout_years3/README.md +49 -0
- shortlist_ai-0.1.0/eval/heldout_years3/jobs/data_engineer.json +55 -0
- shortlist_ai-0.1.0/eval/heldout_years3/jobs/security_engineer.json +55 -0
- shortlist_ai-0.1.0/eval/heldout_years3/jobs/site_reliability_engineer.json +55 -0
- shortlist_ai-0.1.0/eval/heldout_years3/labels.json +21 -0
- shortlist_ai-0.1.0/eval/heldout_years3/resumes/a01_hiroshi_sato.md +17 -0
- shortlist_ai-0.1.0/eval/heldout_years3/resumes/a02_valentina_rossi.md +17 -0
- shortlist_ai-0.1.0/eval/heldout_years3/resumes/a03_omar_khalil.md +16 -0
- shortlist_ai-0.1.0/eval/heldout_years3/resumes/a04_mei_lin.md +16 -0
- shortlist_ai-0.1.0/eval/heldout_years3/resumes/a05_tunde_adebayo.md +16 -0
- shortlist_ai-0.1.0/eval/heldout_years3/resumes/a06_sarah_goldberg.md +17 -0
- shortlist_ai-0.1.0/eval/heldout_years3/resumes/a07_kofi_asante.md +19 -0
- shortlist_ai-0.1.0/eval/heldout_years3/resumes/a08_ingrid_larsen.md +18 -0
- shortlist_ai-0.1.0/eval/heldout_years3/resumes/a09_marco_bianchi.md +17 -0
- shortlist_ai-0.1.0/eval/heldout_years3/resumes/a10_ruth_okonkwo.md +17 -0
- shortlist_ai-0.1.0/eval/heldout_years3/verdicts.json +95 -0
- shortlist_ai-0.1.0/eval/jobs/cloud_security_engineer.md +22 -0
- shortlist_ai-0.1.0/eval/jobs/data_analyst.md +20 -0
- shortlist_ai-0.1.0/eval/jobs/data_engineer_aws.md +24 -0
- shortlist_ai-0.1.0/eval/jobs/frontend_engineer.md +21 -0
- shortlist_ai-0.1.0/eval/jobs/incident_response_engineer.md +23 -0
- shortlist_ai-0.1.0/eval/jobs/senior_data_engineer_gcp.md +23 -0
- shortlist_ai-0.1.0/eval/labels.json +47 -0
- shortlist_ai-0.1.0/eval/resumes/c01_priya_raman.docx +0 -0
- shortlist_ai-0.1.0/eval/resumes/c02_marcus_bell.pdf +0 -0
- shortlist_ai-0.1.0/eval/resumes/c03_wei_zhang.pdf +0 -0
- shortlist_ai-0.1.0/eval/resumes/c04_ana_torres.docx +0 -0
- shortlist_ai-0.1.0/eval/resumes/c05_sam_okafor.txt +12 -0
- shortlist_ai-0.1.0/eval/resumes/c06_rahul_menon.pdf +0 -0
- shortlist_ai-0.1.0/eval/resumes/c07_grace_whitfield.pdf +351 -0
- shortlist_ai-0.1.0/eval/resumes/c08_jordan_blake.pdf +0 -0
- shortlist_ai-0.1.0/eval/resumes/c09_elena_petrova.docx +0 -0
- shortlist_ai-0.1.0/eval/resumes/c10_tom_reyes.pdf +0 -0
- shortlist_ai-0.1.0/eval/resumes/c11_lina_haddad.pdf +75 -0
- shortlist_ai-0.1.0/eval/resumes/c12_david_kim.txt +19 -0
- shortlist_ai-0.1.0/eval/resumes/c13_oliver_grant.md +21 -0
- shortlist_ai-0.1.0/eval/resumes/c14_hannah_lee.md +16 -0
- shortlist_ai-0.1.0/eval/resumes/c15_carlos_diaz.md +14 -0
- shortlist_ai-0.1.0/eval/resumes/c16_amara_nwosu.md +24 -0
- shortlist_ai-0.1.0/eval/resumes/c17_ben_carter.md +17 -0
- shortlist_ai-0.1.0/eval/resumes/c18_nadia_haddad.md +20 -0
- shortlist_ai-0.1.0/pyproject.toml +56 -0
- shortlist_ai-0.1.0/results/eval_local.md +225 -0
- shortlist_ai-0.1.0/results/example_jobs_local.md +46 -0
- shortlist_ai-0.1.0/results/example_rank_local.md +75 -0
- shortlist_ai-0.1.0/results/experiments/no_total_line/dev_local.md +242 -0
- shortlist_ai-0.1.0/results/experiments/no_total_line/heldout_local.md +103 -0
- shortlist_ai-0.1.0/results/experiments/no_total_line/heldout_years_local.md +111 -0
- shortlist_ai-0.1.0/results/experiments/yes_no_roles/dev_local.md +228 -0
- shortlist_ai-0.1.0/results/experiments/yes_no_roles/heldout_local.md +106 -0
- shortlist_ai-0.1.0/results/experiments/yes_no_roles/heldout_years2_local.md +104 -0
- shortlist_ai-0.1.0/results/experiments/yes_no_roles/heldout_years3_local.md +120 -0
- shortlist_ai-0.1.0/results/experiments/yes_no_roles/heldout_years_local.md +103 -0
- shortlist_ai-0.1.0/results/fairness_local.md +79 -0
- shortlist_ai-0.1.0/results/heldout_local.md +102 -0
- shortlist_ai-0.1.0/results/heldout_local_before.md +105 -0
- shortlist_ai-0.1.0/results/heldout_years2_local.md +102 -0
- shortlist_ai-0.1.0/results/heldout_years2_local_before.md +104 -0
- shortlist_ai-0.1.0/results/heldout_years3_local.md +112 -0
- shortlist_ai-0.1.0/results/heldout_years3_local_before.md +122 -0
- shortlist_ai-0.1.0/results/heldout_years_local.md +101 -0
- shortlist_ai-0.1.0/results/heldout_years_local_before.md +107 -0
- shortlist_ai-0.1.0/results/stability_carlos_data_analyst.md +30 -0
- shortlist_ai-0.1.0/results/stability_carlos_data_analyst_before.md +44 -0
- shortlist_ai-0.1.0/shortlist_ai/__init__.py +3 -0
- shortlist_ai-0.1.0/shortlist_ai/backends.py +142 -0
- shortlist_ai-0.1.0/shortlist_ai/blind.py +164 -0
- shortlist_ai-0.1.0/shortlist_ai/cli.py +281 -0
- shortlist_ai-0.1.0/shortlist_ai/documents.py +292 -0
- shortlist_ai-0.1.0/shortlist_ai/evaluate.py +264 -0
- shortlist_ai-0.1.0/shortlist_ai/extract.py +137 -0
- shortlist_ai-0.1.0/shortlist_ai/fairness.py +140 -0
- shortlist_ai-0.1.0/shortlist_ai/pipeline.py +156 -0
- shortlist_ai-0.1.0/shortlist_ai/prefilter.py +40 -0
- shortlist_ai-0.1.0/shortlist_ai/report.py +140 -0
- shortlist_ai-0.1.0/shortlist_ai/schema.py +121 -0
- shortlist_ai-0.1.0/shortlist_ai/score.py +163 -0
- shortlist_ai-0.1.0/shortlist_ai/years.py +81 -0
- shortlist_ai-0.1.0/tests/conftest.py +29 -0
- shortlist_ai-0.1.0/tests/test_blind.py +47 -0
- shortlist_ai-0.1.0/tests/test_documents.py +114 -0
- shortlist_ai-0.1.0/tests/test_fairness.py +58 -0
- shortlist_ai-0.1.0/tests/test_metrics_prefilter.py +108 -0
- shortlist_ai-0.1.0/tests/test_pipeline.py +247 -0
- shortlist_ai-0.1.0/tests/test_score.py +121 -0
- shortlist_ai-0.1.0/tests/test_years.py +109 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v7
|
|
16
|
+
- uses: actions/setup-python@v7
|
|
17
|
+
with:
|
|
18
|
+
python-version: ${{ matrix.python-version }}
|
|
19
|
+
- run: pip install -e ".[dev]"
|
|
20
|
+
- run: ruff check .
|
|
21
|
+
# No API key or model needed: tests use a deterministic fake backend.
|
|
22
|
+
- run: pytest -q
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
# Publishes to PyPI when a version tag (e.g. v0.1.0) is pushed.
|
|
4
|
+
# Uses PyPI Trusted Publishing (OIDC) — no API token is stored anywhere.
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
tags:
|
|
8
|
+
- "v*"
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
test:
|
|
15
|
+
name: Test (py${{ matrix.python-version }})
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
strategy:
|
|
18
|
+
matrix:
|
|
19
|
+
# Floor and ceiling of the supported range, so a tag can't publish
|
|
20
|
+
# something that breaks on the requires-python lower bound.
|
|
21
|
+
python-version: ["3.10", "3.13"]
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v7
|
|
24
|
+
- uses: actions/setup-python@v7
|
|
25
|
+
with:
|
|
26
|
+
python-version: ${{ matrix.python-version }}
|
|
27
|
+
- run: python -m pip install --upgrade pip
|
|
28
|
+
- run: pip install -e ".[dev]"
|
|
29
|
+
- run: ruff check .
|
|
30
|
+
- run: python -m pytest -q
|
|
31
|
+
|
|
32
|
+
build:
|
|
33
|
+
name: Build distribution
|
|
34
|
+
needs: test
|
|
35
|
+
runs-on: ubuntu-latest
|
|
36
|
+
steps:
|
|
37
|
+
- uses: actions/checkout@v7
|
|
38
|
+
- uses: actions/setup-python@v7
|
|
39
|
+
with:
|
|
40
|
+
python-version: "3.x"
|
|
41
|
+
- name: Tag matches the package version
|
|
42
|
+
run: |
|
|
43
|
+
version=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
|
|
44
|
+
test "v$version" = "$GITHUB_REF_NAME" || { echo "tag $GITHUB_REF_NAME != version $version"; exit 1; }
|
|
45
|
+
- run: python -m pip install --upgrade build
|
|
46
|
+
- run: python -m build
|
|
47
|
+
- run: python -m pip install --upgrade twine && python -m twine check dist/*
|
|
48
|
+
- uses: actions/upload-artifact@v7
|
|
49
|
+
with:
|
|
50
|
+
name: dist
|
|
51
|
+
path: dist/
|
|
52
|
+
|
|
53
|
+
publish:
|
|
54
|
+
name: Publish to PyPI
|
|
55
|
+
needs: build
|
|
56
|
+
runs-on: ubuntu-latest
|
|
57
|
+
environment:
|
|
58
|
+
name: pypi
|
|
59
|
+
url: https://pypi.org/project/shortlist-ai/
|
|
60
|
+
permissions:
|
|
61
|
+
id-token: write # required for trusted publishing (OIDC)
|
|
62
|
+
steps:
|
|
63
|
+
- uses: actions/download-artifact@v8
|
|
64
|
+
with:
|
|
65
|
+
name: dist
|
|
66
|
+
path: dist/
|
|
67
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 shortlist-ai contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|