Applied ML · Classification · Entity resolution · Ranking
Who should we reach? A pipeline that answers it.
Every researcher record arrives as raw text: a name, a department, some interests, a list of papers. The pipeline turns that into a decision. It resolves the record to one person, places them in a field and subfields, fills in their profile, and ranks them by work history against the campaign. A fast local model does most of the work. An LLM handles the uncertain cases. People make the final call wherever the system is unsure.
- scikit-learn
- LLM (Grok) · webhook protocol
- Title fingerprinting
- PostgreSQL advisory locks
- FastAPI background workers
The pipeline
Department first, then work history.
Two questions decide whether a researcher is worth reaching: what field are they in, and how active and senior are they in it. Each stage below answers part of that, and each one is safe to re-run.
Identity resolution: one person, one record
Names are a weak signal and papers are a strong one. Each profile keeps a bounded set of papers: the newest, plus the most-cited of the rest. Each paper gets a 64-bit fingerprint of its title. Two profiles merge only when they share a fingerprint and their names are compatible. A single candidate with no shared paper, or paper lists that disagree, opens a review question instead of guessing.
precision over recallDepartment → field: confidence-gated local model
A scikit-learn classifier, trained in-process, reads the department name and research interests and predicts the major field. It writes only above a confidence threshold. Labels are weighted by trust: values a person entered or verified count more than machine-written ones. The model's own unchecked predictions are excluded from training, so it never learns from itself. It retrains in the background when labels change, under an advisory lock.
cheap · fast · deterministicLLM classification & enrichment, with provenance
Records the local model is unsure about go to an LLM in batches over a webhook protocol. Classification is constrained to the company taxonomy: one field, one to three subfields spelled exactly as the taxonomy spells them, and a few research phrases drawn from the papers. Enrichment fills title, location, highest qualification and career start year. It writes only into empty fields, never over a human's value. Every write is marked with source, run and evidence, plus a low-confidence flag when the model says it's unsure.
taxonomy-constrained auditableWork-history ranking
With a field attached, researchers are ranked against a campaign's target areas. The signals are fit to the subfield, publication output per year, citation weight, recency of work and seniority. The ranking is joined to a deliverability score kept per contact and per domain (safe, risky, not tested, do not send), so the shortlist is both relevant and reachable.
relevance × reachabilityHuman-in-the-loop, by design
Ambiguous identities, low-confidence classifications and flagged records go to a review queue. When a person edits a value, its machine mark is cleared and it becomes a high-trust training label. The system gets better from the work people already do.
closed feedback loopHow it behaves
Decide what you're sure of, escalate the rest.
Confidence gating
IllustrativeThe concept, not production figures. Predictions above the threshold are written automatically; everything below goes to the LLM or a reviewer.
Outreach open rate
Open rate, %Moving from blind lists to classified, work-history-ranked shortlists raised the open rate from 8% to 36% within two months, a 4.5× improvement.
Design decisions
Why hybrid, not "LLM everything".
| Decision | Why |
|---|---|
| Local model before the LLM | Most records are easy. Settling them locally keeps cost and latency low, and saves the LLM for the cases that need it. |
| Never train on unchecked output | Stops the model reinforcing its own mistakes. |
| Fill-empty-only LLM writes | Human knowledge always wins, and every machine value can be traced and reverted. |
| Merge only on shared papers | A false merge corrupts two people's records and is far costlier than a review question. |
| Watchdog-driven batches | Stalled LLM runs are closed and their records released. Dropped webhooks are retried, and runs never stack past the lane limit. |