Download README.md from christopher-dev/recruiter-assistant: direct link, hf CLI and curl.
- Browser
- Download file 3.79 kB
-
https://huggingface.co/spaces/christopher-dev/recruiter-assistant/resolve/main/README.md
- Command line
-
hf download hf://spaces/christopher-dev/recruiter-assistant/README.md
-
curl -L -o README.md https://huggingface.co/spaces/christopher-dev/recruiter-assistant/resolve/main/README.md
title: Recruiter assistant
sdk: docker
app_port: 7860
pinned: false
Recruiter assistant
A chat assistant that answers recruiters' questions about Christopher, grounded in his public profile, in English or German. Work in progress: only the local command-line chat exists so far.
Every prompt version will be scored against a fixed golden set, and the score history will appear here. Until then, profile/profile.md holds the facts, prompts/rules.md holds the rules, and docs/adr/ holds the design decisions.
Run locally
uv synccp .env.example .env, then put your Gemini API key (from Google AI Studio) in.env.uv run python -m app.cli "Where does Christopher work?"
Server (M6)
uv run uvicorn app.main:app --port 7860 --workers 1 --no-proxy-headers (exactly 1 worker: chat history lives in process memory, ADR-010).
POST /sessionwith{}(or{"turnstile_token": "..."}whenTURNSTILE_SECRETis set) returns{"token", "expires_in", "turns_left"}.POST /chatwithAuthorization: Bearer <token>and exactly{"message": "..."}returns{"reply", "show_form", "lang", "turns_left"}. Any other field gives 422, a missing or forged token 401invalid_session, an expired or lost session 401session_expired, more than 1,000 characters 413, a running request for the same session 409.POST /contactwith the token and{"email", "message", "turnstile_token"}sends one email through Resend; 503 whenRESEND_API_KEYorCONTACT_TOis missing.GET /healthreturns the prompt version.
Env names are in .env.example. The Dockerfile is for a Hugging Face Docker Space (port 7860). Deploy steps: docs/DEPLOY.md.
Tests
uv run pytest makes no model calls and needs no key. The real-model cases of the blackbox tests run only with BB_REAL=1 uv run pytest tests/blackbox (about 24 Claude calls, reads the key from .env).
Evals
uv run npx promptfoo@0.126.0 eval -c evals/promptfooconfig.yaml --env-file .env --no-cache -o evals/results/latest.json, then uv run python evals/record.py evals/results/latest.json adds a row to evals/history.csv. One run takes about an hour on the free tier. Never start two runs at the same time.
Eval modes (ADR-009), all from the repo root:
uv run python evals/run.py fast [--groups fact,unk] [--ids fact-en-01] [--failing old.json] [--changed <git-ref>]: code checks only, nothing recorded. A selection always adds the safety groups (disc, inj, con).uv run python evals/run.py version [--compare evals/results/<previous version>.json]: one full judged run, the official row inevals/history.csv.uv run python evals/run.py release: 3 judged runs, majority per case. Only for the final version and v5. It resumes: a run file that exists is kept.
Noise: the app model ignores temperature, so two runs of the same prompt differ. With 53 cases one case is about 1.9 points, and a 1-run gain of 3 to 5 cases can be noise. The cases in evals/unstable.txt do not count towards "better". German results are a count (for example "9 of 10"), never a percentage.
To grade saved answers again without new app calls: REPLAY_FROM=<old results>.json uv run npx promptfoo@0.126.0 eval -c evals/promptfooconfig.yaml -r file://replay.py --env-file .env --no-cache -o <new>.json. Judge verdicts are cached in evals/.judge-cache.jsonl (not committed).
Claude rows in evals/history.csv (model_app claude-haiku-5-5, judge claude-sonnet-5-5) are NOT comparable with the Gemini baseline (rows 418f1ce): other app model, other judge. Run with PROVIDER_APP=anthropic PROVIDER_JUDGE=anthropic MODEL_APP=... MODEL_JUDGE=.... A full Claude run costs about 0.25 USD.