Cole Hoffer
Two orcas swimming beneath the sunlit surface

Notes on applied AI

Making AI
do the thing.

I’m Cole. I build search systems and write about what happens between a question and the answer a model gives back.

Recent writing ↓
Latest / Sep 24, 2026Let the Judge Choose, Not Score
Read article ↗

Writing

View all ↗

Let the Judge Choose, Not Score

I find it easier to pick the better of two answers than to explain what makes one a 6 or a 7. Here’s how I turn those choices into ratings.

Evals

Evaluating LLM Chat Agents with Real World Signals

Three signals I look for in a chat thread are which sources the model cited, what the user asked next, and whether the model followed specific instructions.

Evals

Reciprocal Rank Fusion for Hybrid Search

A document that ranks second in two lists can end up first overall. Here’s how reciprocal rank fusion combines keyword and semantic search results.

Guide

Mining Reranker Training Data from RAG Citations

The documents a model cites can double as training examples. The tricky part is deciding how much to trust each citation.

Retrieval

Relevancy Filtering in Retrieval Pipelines

A similarity cutoff that works on one dataset can fail on the next. I look at using an LLM to check the documents that made the shortlist.

Retrieval

Applying HyDE to Domain-Specific Search

A customer writes “payment flow.” The docs call it “checkout.” How a hypothetical answer can help a search find the match.

Retrieval

Structured Pre-Filtering for RAG Systems

When someone asks about “last quarter,” I’d rather give the search engine a date range. Here’s how I separate filters from the rest of a query.

Retrieval

BM25 Search in LLM Systems

What does a second mention of “API” do to a document’s BM25 score? A worked example of how word frequency and document length affect the ranking.

Guide

Structured Logprobs for Better Classification

I changed my classifier to explain its reasoning before choosing a label. Here’s how I get a confidence score from the token that carries the prediction.

Classification

Interactive guides

Keyword search

BM25 Search in LLM Systems

What does a second mention of “API” do to a document’s BM25 score? A worked example of how word frequency and document length affect the ranking.

Search query
API
  1. Key management

    Create API keys and rotate API credentials.

    0.25BM25
  2. Token setup

    Authorize API requests with OAuth tokens.

    0.19BM25

Key management ranks first. It mentions “API” twice.

Hybrid search

Reciprocal Rank Fusion for Hybrid Search

A document that ranks second in two lists can end up first overall. Here’s how reciprocal rank fusion combines keyword and semantic search results.

Search query
reset my password
Keyword
  1. 1Password policy
  2. 2Reset link
  1. 1Account recovery
  2. 2Reset link

Reset link ranks first. Two second-place votes beat a single first.

Series / 3 parts

Advanced RAG

I usually draw retrieval as one box. These posts look inside it, from pulling a date range out of a query to deciding which documents reach the model.

Series overview ↗
  1. 01Structured Pre-Filtering for RAG Systems ↗
  2. 02Applying HyDE to Domain-Specific Search ↗
  3. 03Relevancy Filtering in Retrieval Pipelines ↗

About me

Senior Staff AI Engineer at Miro.

Mostly this means yelling at LLMs, professionally.

More about me ↗