Boomerang

Candidate search at Boomerang.

Search and internal tools

I worked on candidate search and job matching at Boomerang, where recruiters find people through company alumni networks. I wanted them to describe who they needed in a sentence, then get useful matches without losing the constraints in that request. I also built internal tools around bug reporting and HR synchronization.

Turning a sentence into a search

I worked on letting a recruiter ask for “payments engineers in Toronto” without filling in a long form. I split that request into a location requirement I could enforce in SQL and a description of the experience I needed to find. That meant a strong experience match could never make an Ottawa profile satisfy the Toronto requirement.

I split the request into constraints and meaning before choosing which profiles to retrieve.
filters, meaning = rewrite(request)
eligible = profiles.where(filters)
query_vector = encode(meaning)
shortlist = nearest(
    eligible, query_vector, limit=k)
return shortlist
How I kept the filters separate from similarity

I used a query-rewriting step to produce structured filters alongside a semantic query, then kept those constraints attached throughout retrieval. I’ve shown the logical ordering in the pseudocode so it’s clear which profiles the similarity search is allowed to consider.

For the semantic part, I converted the query and candidate profiles into embeddings, which are numerical representations I could compare. I included title and company history, location, education, and profile text, then stored the vectors in Postgres with pgvector. That gave me a way to find related experience even when the profile used different wording.

I still needed to separate eligibility from relevance. In the example used here, C17 and C08 both live in Toronto, while C42 lives in Ottawa. C42’s payments experience doesn’t change its eligibility, and C08’s location doesn’t tell me whether its backend work is a good fit.

I also need to check how filters affect an approximate nearest-neighbor index, which searches for close matches without comparing every profile. Enforcing the right constraint doesn’t guarantee I’ll get enough eligible candidates back.

Using two models for different jobs

I also replaced a candidate-to-job ranker that used hand-built features such as title, tenure, and school. I used a bi-encoder to represent the job and profiles separately and retrieve a shortlist, then used a cross-encoder to read each shortlisted profile together with the job and refine the order.

I retrieved a shortlist before asking the cross-encoder to read each job and profile together.
job_vector = bi_encoder.encode(job)
shortlist = retrieve(
    eligible_profiles, job_vector, k)
scores = cross_encoder.score([
    (job, person.profile)
    for person in shortlist
])
return sort_by_score(shortlist, scores)

That split let me spend the more expensive pairwise computation on a smaller group. I served the models through FastAPI with batched inference, and kept the two stages distinct so I could trace where a useful candidate had been lost.

The same eligible candidates change order after rerankingIllustrative candidates, not measured scores. Retrieval puts C08 before C17. Reranking puts C17 before C08. C42 is excluded by the city filter and is never scored in either stage. Bi-encoder shortlistCross-encoder order 1 C08Backend engineering 2 C17Payment infrastructure 1 C17Payment infrastructure 2 C08Backend engineering I kept C42 out because its Ottawa location didn’t meet the Toronto filter. The same eligible candidates change order after rerankingIllustrative example. The bi-encoder retrieves C08 then C17. The cross-encoder reorders them to C17 then C08. C42 from Ottawa stays excluded by the Toronto filter. RetrieveRerank 1 C081 C17 2 C172 C08 C17: payment infrastructureC08: backend engineering I kept C42 out because its Ottawalocation didn’t meet the Toronto filter.
I reranked the same eligible candidates in this illustrative example, moving C17 ahead of C08 while keeping C42 out of the shortlist.
Why I didn’t use the cross-encoder for every profile

I could encode profiles separately with the bi-encoder and reuse those representations when searching against a new job. With the cross-encoder, I passed the job and profile through together, which let the model compare their text more closely but required another paired computation for each candidate.

I used the first stage to find candidates worth considering and the second to make a more detailed comparison. In the illustrative ordering above, C08 starts ahead of C17, then C17 moves ahead after the joint comparison. Those positions explain the stages; they aren’t measured model scores.

If the retriever leaves a relevant person out, reranking can’t bring that person back. If the person reaches the shortlist but finishes too low, I have a different problem to inspect. Keeping those failure cases separate gave me a more useful place to start than treating the entire search as one model output.

Being precise about what the labels meant

I trained the models in PyTorch using previous candidate-job interactions, with accepted matches as positive examples and dismissed matches as negative ones. I treated those labels as feedback about recruiter interest, because an accepted recommendation didn’t tell me whether the person was eventually hired.

What I could learn from an acceptance or dismissal

I wanted the model to learn which candidate-job pairs recruiters found useful, so I needed to keep that target clear when interpreting its output. A high score reflected the pattern in those interactions; it didn’t establish a candidate’s ability or predict a hiring outcome by itself.

I also had to think about which profiles had been shown in the first place. Feedback comes from recommendations someone saw and acted on, so a profile missing from the shortlist can’t receive the same kind of interaction. That connects the quality of the training signal back to the retrieval stage.

When checking a result, I would look at whether relevant candidates reached the shortlist before judging their final positions. That keeps a ranking improvement from hiding a retrieval failure.

Giving a bug report enough context

I built an in-app bug-reporting widget connected to a Claude-based development flow, where I gathered application context, relevant Notion docs, Granola meeting notes, and past pull requests. I wanted the engineer reviewing a draft fix to see both what the user encountered and what the feature was supposed to do.

How I kept a draft patch reviewable
I kept the draft change attached to its report and supporting context so an engineer could review it.
kind = classify(report)
context = gather_context(report, kind)
patch = draft_patch(report, context)
checks = run_tests_and_qa(patch)
review = request_engineer_review(
    report, context, patch, checks)
return review

I started with triage so the report could be classified before a patch was drafted. I then ran tests and QA on the proposed change and kept an engineer’s review before merge, with the original report and supporting context available alongside it.

I used the context to connect a reported symptom with the intended behavior. A previous pull request might explain why a feature behaved a certain way, while a product note could show that the reported behavior was actually a bug. I still needed the proposed change to be checked against that evidence.

Reusing the work I’d already done

I added Redis caching and delta-based updates to HR synchronization so I could process changed records without fetching and enriching everything again. I also batched field-normalization requests and reused cached results when I’d already handled the same version of a job title or company name.

Where caching helped and where I needed fresh data
I’ve shortened the sync flow here to show where I reused work and where I needed a fresh result.
changes = fetch_since(last_sync)
for record in changes:
    key = normalization_key(record)
    normalized = cache.get(key)
    if normalized is None:
        normalized = normalize(record)
        cache.set(key, normalized)
    save_update(record, normalized)
commit_successful_sync()

I used delta updates to reduce how much source data needed processing, and caching to reduce repeated normalization work within that data. Those solve different parts of the problem: a record can be new to this sync while containing a value I’ve normalized before.

In the conceptual flow above, I need the cache key to describe the input whose result I’m reusing. I also need to record a sync as successful only after its updates have been saved, so a failed attempt doesn’t silently skip records on the next run. Those details determine whether avoiding repeated work also preserves a correct result.

What I took from the work

I kept coming back to the boundaries between stages: whether a filter was enforced, whether retrieval found the right candidates, and whether ranking made a useful comparison. I found it much easier to reason about a result when I could follow the same inputs through those decisions and see where they changed.