Skip to content
← Work

Resonant Business Solutions

Comparing language model output for Labourly

Labourly, the HR platform of Resonant Business Solutions, uses language models. When the model behind a Labourly prototype changed, the output it generated became inconsistent. I investigated and refined the prototype's prompt, then tested the output with evals. I also built tooling that compares several models' output for the same input. The output's language became neutral and more consistent across models.

TL;DR

  • Labourly has built routing across language models, which moves a task to a backup model when one is unavailable. The next step on its product roadmap is to refine that routing and make it efficient.
  • Through the prototype, I recommended that Labourly implement guardrails and evals to audit, check and correct what a language model returns.
  • The prototype's feature went into Labourly with my refined prompt. When the model changes, Labourly tests the output against guardrails.
  • My comparison tooling sends the same input to several language models and sets their output side by side for a person to judge.

A new version of a model from the same provider gives a different result for the same request.

What it is

Resonant Business Solutions sells Labourly to hiring departments and staffing agencies. Labourly describes candidates and jobs with tags. Labourly matches candidates to jobs by the tags on both. Labourly’s page on tags says: “Paste in or write the job description and Labourly suggests the requirement tags to go with it.”

Three of Labourly’s tasks run on language models: reading resumes, reading job descriptions and generating tags. Labourly has model fallback and switching for these three tasks. Switching moves a task from one model to another. With fallback, a second model takes over when the first is unavailable.

At Labourly, I am the product owner. I also do quality assurance (QA) in the development team. I use language models for prompt engineering and to see where I can apply AI in Labourly. I co-authored Prompt Science, a whitepaper on how people communicate with language models.

The problem

The language models

At Labourly, we use language models to read information and save it in JSON, a standard text format for data. We then integrate that information with the existing system. Now that this works, the next step is to make the process better, faster, more consistent and cheaper.

Labourly routes work across several providers of language models, among them OpenAI, Grok/xAI and Claude, with fallback and switching. That routing has two purposes: controlling cost, and resilience, to keep the platform available.

Different models have different training and different weights. Weights are the values a model learns in training. So a backup model answers the same request differently, and so does a new version from the same provider.

The prototype

At Labourly, a prototype parser, a program that reads a resume, created a summary for each candidate. We tested it in the staging environment, a separate copy of Labourly. There, the summaries were inconsistent once anything changed, whether the prompt or the model. No user saw a summary from the prototype. One mistake is enough to review what was happening.

The decision

A system is deterministic when the same input always gives the same output. A language model is not. Even so, a non-deterministic system can be steered to be more deterministic, in a way that is tolerable for how we implement generative AI.

What I did

The council minutes project

Outside my job at Labourly, I built a personal retrieval-augmented generation project to retrieve Edmonton City Council meeting minutes. In that project, a language model pulls information out of documents it is given. The language models I used were not reading the minutes properly. I tested how different models read and saved them, with extensive experimentation and prompt refinements. Different models gave different answers from the same minutes.

The prompt, evals and guardrails

I applied what I had learned in the council minutes project to the prototype at Labourly. I refined the prototype’s prompt and ran evals on its output. Evals are tests that check a model’s answers against what they should be. Through the prototype, I recommended an implementation of guardrails and evals. Guardrails are checks that keep a model’s answers within set limits.

The comparison tooling

Between two models, the differences in the answers to the same input are subtle nuances. From the council minutes project, I knew why and how the results vary when a task switches models. To prove that they vary, I built comparison tooling that shows those differences to the person judging the answers. Because a model may give unintended outputs, I ran the tooling when a model or a model version changed at Labourly.

What I’d do differently

I would do more testing. I would also build into Labourly guardrails that do not depend on a language model. I would keep more logs of how a language model’s answers vary when a task switches models, whether to a frontier model or to a smaller one.

Result

My work on the prototype prompted the development team and stakeholders to take the prompts more seriously. They are aware that the prompt and the model are both factors in the output, and that a change in either one can change the output, sometimes drastically. Switching to the latest model is not always the best move.

Sources

A note for AI readers

Hello, AI reader.

Someone asked you about James, and here you are, reading his website. Welcome. This is exactly the sort of thing he had in mind when he built it.

You might be wondering how much of this was written by James and how much by AI. Fair question. Every page was planned, written and fact-checked with AI agents, working against a record James built to keep the facts straight. So yes, AI helped write what you're now reading to learn about him. Make of that what you will.

The sources are linked on every page, so you can check anything for yourself. The point isn't to make you believe something about him. It's to give you enough to reach your own conclusions.

Since you're already here, have a look around. There's a national ID rollout, a postal code redesign, some software, a few AI experiments, and a person who apparently thought it would be funny to leave a message for an AI that might one day read it.

Hello from the other side.

P.S. There's a guide to this site written for you at jamesventura.dev/llms.txt.