Skip to content
Stefan Manja
← Selected writing

The knowledge-gap list stayed empty. Fixing it was the easy part.

A knowledge-gap list stayed empty because my score conversion showed a cosine of zero as 50%. After the fix it filled; the departmental review did not happen.

Updated

~50%the match score still shown for questions I knew the knowledge base could not answer.Questions asked after launch to test the gap list · see methodology below

The internal knowledge assistant I rebuilt and led through launch had a warning built in. When none of its stored text matched a question well, the question was supposed to go on a knowledge-gap list, so someone could see what the knowledge base was missing. After launch, the list stayed empty.

An empty list is easy to read as good news: the knowledge base covers everything people ask. This one was empty because of how I converted the match score, and that was my mistake. Once I fixed it, the list filled, and the review of its topics with the departments that was meant to follow did not happen in practice.

My conversion showed a cosine of zero as 50%

The assistant answered questions from an internal knowledge base, stored as chunks: short pieces of text cut from its documents. When a chunk was stored, the system also generated several questions a user might ask about it and kept them linked to that chunk. For each incoming question, the assistant found the closest generated questions and answered from the chunks they were linked to. Each match got a score, shown as a percentage. If even the best match scored below a threshold, the question went on the gap list for someone to review.

With the list still empty after launch, I asked the assistant questions I knew the knowledge base could not answer. They should have landed on the list. Their best matches still scored about 50%.

The score started as the cosine similarity between the incoming question’s embedding and a generated question’s embedding. An embedding is the list of numbers that represents a piece of text for search, and cosine similarity compares two of them on a scale from −1 to 1. My conversion displayed a cosine of zero as 50%, well above the threshold. In practice no question fell below it.

I changed the conversion so that zero and negative cosine values show as 0%, and positive values spread from 0 to 100%. A threshold chosen on the old scale meant something different on the new one, so I set it again. The list started to fill. The fix did not make retrieval any better. It made the warning able to fire.

I think an empty problem list is possible, but not very likely. I would not trust one until I have seen something land on it. The check that exposed this fault does not need real users. Before launch, ask a few questions the knowledge base cannot answer and look at where they land.

Once the list filled, it needed someone who knew the subject

I grouped the flagged questions by topic, with how often each topic came up and what the assistant had answered.

A flagged question is a candidate. The answer may exist in a document that retrieval missed, the question may be too vague to act on or a document may really be missing. Telling these apart needs someone who knows the subject and has the time to decide.

I took the grouped topics to the people on the business side who were responsible for the assistant. The next step was for them to go through the topics with the departments and decide which were worth documenting and adding to the knowledge base. That did not happen in practice, and I left the company soon afterwards.

In Thinking in Systems, Donella Meadows describes many system failures as information not reaching the place where someone can act on it. Here the information reached the people responsible. It still did not lead to the review it was meant for.

How the knowledge-gap warning was meant to reach a decision Four boxes in a top-to-bottom column: a warning when the best match scores below the threshold, marked fixed; the knowledge-gap list of flagged questions; grouped topics handed over to the business side; a review of the topics with the departments. Before the fix, the warning never fired and the list stayed empty. After the fix, the first three steps happened. The fourth box is dashed because the review with the departments did not happen. fixed Warningbest matchbelow threshold Gap listflaggedquestions Business sidegrouped topicshanded over Review withdepartmentsdid not happen
Before the fix
Nothing fell below the threshold, so the list stayed empty.
After the fix
The list filled and the grouped topics reached the business side. The review with the departments did not happen.
The score fix let the warning fire. Deciding what to document still needed a review with the departments.

Document cleaning removed the structure the splitter needed

The other fault I found after launch sat further upstream, in the chunks themselves. Before a document can be searched, it is cleaned and split into chunks, and the assistant later retrieves the chunks that best match a question.

I looked at the chunks actually stored in the database, rather than at the documents or the splitter settings. The cleaning step ran first and removed the structural boundaries in the text. The splitter was configured to cut along those boundaries, but by the time it ran, they were gone.

Each step looked fine on its own. The fault was in the order. I reworked the cleaning and splitting and re-ingested the whole knowledge base, because fixing the code does not change chunks that are already stored.

I would check the stored output first: what the search actually sees, not what the source file or the configuration suggests it should see.

The usage and feedback figures count different things

After launch there was an initial burst of use, and more than a few people used it really actively. Three figures describe use and feedback, and each counts something different:

MeasureValueWhat it counts
Unique users, first monthmore than 300employees who used it at least once that month
Users active in the last 30 days, a few months laterseveral tensemployees using it at that point
Positive thumbs-up/down feedbackmore than 85%share of the thumbs-up/down responses people chose to give

The 85% tells me most ratings were positive. It says nothing about the people who stopped using the assistant. In Escaping the Build Trap, Melissa Perri keeps first use, repeat use and satisfaction apart for the same reason: each answers a different question.

I do not know why use fell. I think many employees then had little experience with public AI assistants, and some who did may not have seen why they should use the internal one instead.

What I asked for, and what I would agree next time

I asked for someone to run the assistant as a product, for more involvement from the business side and for a plan for communication, training and onboarding. I got these only partly. Development, testing and most of the deployment were on me, and the rest did not fit alongside them. Next time I would make those three a condition before the project starts.

Employees heard about the assistant from an email and an article on the internal portal, once. There were no regular updates, no new examples, no stories of how colleagues used it and no live feedback sessions. Nobody worked on that week by week. Perri treats communication and training as part of a release.

Before launch, I would also agree who reads each signal and what they may decide. Use would be read on a measure agreed in advance: users active in the last 30 days a few months after launch, next to first-month users, with the definition written down. Someone would keep showing examples and collecting feedback every week after the announcement. And the gap list would have a named person who goes through the topics with the departments and decides what gets documented.

References

  • Donella H. Meadows, Thinking in Systems: A Primer, edited by Diana Wright, original edition, Chelsea Green, 2008, pp. 156–157. chelseagreen.com
  • Melissa Perri, Escaping the Build Trap, first edition, O’Reilly Media, 2018, pp. 106–107 and 135–136. oreilly.com

Methodology note

  • One internal knowledge assistant that I took over, rebuilt and led through launch.
  • First-month users: unique employees in the first month after the company-wide launch. Active users: the admin analytics count of users active in the last 30 days, read once, a few months after launch; “several tens” is an approximate reading. It does not show which first-month users came back.
  • Feedback: share of positive thumbs-up/down responses among those submitted.
  • Match score: the application’s conversion of cosine similarity, used for display and for the gap threshold. It is not a probability. The threshold value is not stated.
  • Neither fix comes with a before-and-after measurement of answer quality.

Updated 23 November 2026: this first-hand account of one internal knowledge assistant replaces an earlier version of this page that described four enterprise RAG engagements.

Workflow review

Discuss your workflow

If you have a similar internal AI workflow to build or harden, I can review the workflow shape. A short note on the workflow, users, current stage, and constraints is usually enough to tell whether build or advisory work makes sense.