# A search score cannot tell you that nothing relevant was found

> Uncanny Agent and Automator MCP answer product questions from a retrieval service I built. It runs two searches and merges them into one ranking. The hardest lesson was what the merged score does not mean.

- Author: Joseph Gabito (Lead Applied AI Engineer, Uncanny Owl)
- Product: Retrieval service
- Organization: Uncanny Owl
- Period: 2026 to present
- Updated: 2026-12-04
- Reading time: 4 minute read (1025 words)
- Canonical URL: https://joseph.gabi.to/work/llm-ingestion-pipeline/

Ask a search index a question it has no answer to, and it will still return results. Search is built to find the nearest documents, and something is always nearest. For a person scanning a results page that is harmless, because they can see that nothing fits. A model is different. It is handed those passages as the material to answer from, and **nothing in them says the search came up empty**.

That is the problem this page is about. Retrieval for an AI agent can fail in two ways that better ranking does not fix. The right document can be missing from the index, or the search can return something regardless and the model will trust it.

## What the service does

Uncanny Automator connects WordPress to hundreds of plugins and apps. A model can only answer a customer’s question accurately if it reads the right documentation first. That means the setup guide for the app they use, the exact trigger or action that exists, and the current wording of our own help pages.

To supply that material, the service ingests web pages, PDFs and Markdown files, splits them into passages and indexes them. Before the model replies, **the service decides which passages it should read**. It keeps different kinds of knowledge apart, such as general WordPress concepts and the setup guide for each app. Keeping them separate means a question about a WordPress concept never competes with a Mailchimp setup guide for the same place in the results.

## Decision 1: Two searches for every question

Customers ask in two different ways. Some describe what they want, such as “send form entries to a spreadsheet”. Others type an exact name, such as “mailchimp api key” or the name of one trigger. A *search by meaning* handles the first kind well and finds a Google Sheets guide even when the customer never typed “Google Sheets”. It misses exact names because one email marketing app looks much like another to it. A *keyword search* catches those exact names and misses plain descriptions.

> Search is built to find the nearest documents, and something is always nearest.

Using only one of them would have been cheaper to build and run, since choosing both means paying for two searches on every question. I took that trade because exact names sit at the centre of Automator questions, and **a miss on a name leaves the model guessing**.

The two searches score results on scales that cannot be compared, so the service ignores the raw scores and merges the lists by rank, a method called *Reciprocal Rank Fusion* (RRF). Any document ranked high by both comes first. The ranking also moves up documentation for integrations the customer’s site already has installed. It does not filter out the rest, because customers often ask about an app they are thinking of adding. Merging by rank solves the mismatched scales, but it leaves a merged score that is hard to read. That hard-to-read score turned out to be the expensive part.

> *Interactive figure on the web page:* This figure shows two searches merged by rank, for three questions. The third question has no answer in the index, yet its best score is higher than theirs. The documents are invented for this figure. The scores are computed with the published fusion formula, 1 ÷ (60 + rank) from each search.

## Decision 2: Do not use the merged score to judge relevance

**A merged score is built only from positions**. A document ranked first by both searches gets the same score whether it answers the question perfectly or has nothing to do with it. The best result for one question ends up scoring about the same as the best result for any other. A minimum score looks like the obvious guard against weak results. Because of how the score is built, such a floor does not measure relevance at all. It keeps the first few results for every question, including the ones the index cannot answer.

What the merged score can tell you is whether both searches found a document or only one did. I worked through the arithmetic in [What a Reciprocal Rank Fusion (RRF) score can and cannot tell you](https://joseph.gabi.to/what-is-a-good-rrf-score-hybrid-search-and-the-noise-floor/). Agreement between two searches is better evidence than either search alone, but it still cannot prove a passage answers the question. The search by meaning always returns its nearest passages, however far away they are, and the keyword search returns anything that shares a word with the question.

That means the service itself has to say when it has nothing. When it holds no documentation for the integration in the question, it says so in plain words so the model can look elsewhere or tell the customer.

## Decision 3: Replace documentation in one step

Automator’s product documentation changes with each release. If a model reads it while an update is half finished, it can combine old instructions with new ones.

To avoid that, all of the slow work happens while the old set stays live. The new pages are checked, split into passages and indexed beside the current set, so each update briefly holds two copies of the documentation. **One step then swaps the old set for the new one**. A failure at any point leaves the old set untouched. A reader gets one complete set or the other, instead of an answer assembled from two versions of the product.

## What a merged ranking leaves open

Saying “nothing here” is easy when a whole topic is missing. **It is harder when the index covers a question only in part**, and that is an open problem for retrieval in general, not only for this service. There are two known ways to attack it. One is a threshold on each search’s own score, applied before the merge, which is cheap but has to be set separately for each search. The other is a second model that reads each passage against the question, which costs a model call every time. Choosing between them is a question for measurement. The method I would use is the one I used for [Llawliet](https://joseph.gabi.to/work/llawliet/): tune on one set of questions and report on another.
