Your product names are out-of-vocabulary tokens
Dell's internal search kept failing on names like PowerScale and CloudIQ. The fix started below the LLM: audit the tokenizer, mine hard negatives from your own index, and measure against a golden set.
Ask an internal search system "how do I get PowerScale access" and watch it return a Confluence page about power supplies. That is not a reasoning failure. It is a vocabulary failure, one layer below the LLM everyone is tuning.
Rachel Shalom, an applied AI scientist and Distinguished Engineer at Dell, runs the company's agentic search across GitHub, Jira, Confluence, SharePoint and internal databases. In a QCon AI talk published this week, she described the system and, more usefully, what kept breaking: questions about Dell-specific products — PowerScale, CloudIQ, PowerProtect — where semantic search reliably retrieved the wrong documents.
The instinct is to swap in a bigger generator, add a re-ranker, or stuff more documents into the prompt. Dell went a level down, to the embedding model — and how they decided is worth copying.
What the system looks like
The architecture is deliberately unglamorous. A supervisor model routes each question to one of several agents: GitHub, Confluence, GitLab, a security agent that calls Ubuntu and SUSE APIs for CVE resolutions, and database agents. Every agent talks only to the supervisor, never to another agent, and the supervisor caps the number of turns — which keeps context small and puts every failure in one place.
Everything runs on-premises: open-source models, pgvector for the index, Langfuse for observability. Ingestion converts source pages to markdown, keeps column headers when chunking tables, chunks by paragraph, embeds and stores; code is chunked semantically with AST. Because internal docs churn, the pipeline diffs against source APIs every two days and re-embeds what changed. An index stale by a month is an index that is confidently wrong.
The check most teams skip
Before touching a training loop, Shalom asked whether her text existed in the tokenizer's vocabulary at all. Open-source embedding models ship a vocabulary of roughly 30,000 tokens; any string outside it collapses into an unknown token. She sampled Dell's corpus and counted. The unknowns were not dense jargon — they were Base64 strings, Unicode box-drawing characters, images, checkmarks and long camelCase compounds.
The percentage was small, which cleared the way for fine-tuning. That is the point of the check: if most of your corpus is out of vocabulary, fine-tuning a pre-trained model is the wrong instrument and you are looking at training from scratch. One afternoon of counting saves a quarter of GPU time.
Model selection came next: licence first, then openness (weights, training code and data all released), retrieval benchmarks rather than general similarity, cost, latency and context length. They landed on two small open models — EmbeddingGemma for code at 2K context, Nomic Embed for Confluence at 8K with heavy technical-document training.
Hard negatives decide whether this works
Training data came from chunks they already had; for each chunk an LLM generated three questions the chunk answers. That is the easy half. The hard half is negatives that are close but wrong. Take each question, query the vector database with the untrained model, and keep only results whose cosine similarity falls between roughly 30% and 80% — too similar and you teach the model to separate near-duplicates, too dissimilar and the task is trivial. Keep the top 20, sample 7 per example, a number taken from the Nomic Embed paper.
The result is triplets: one query, one positive chunk, seven near-miss chunks pulled from your own index. Mined negatives rather than random ones are usually the difference between a fine-tune that moves recall and one that only moves loss.
The training run
Four H100s, batch size 128, seven negatives, roughly 9 billion tokens of Confluence. Distribution changes the difficulty: each GPU holds 128 queries and 1,024 documents, and after an all-gather every GPU sees the full 4,096 vectors, so each query is compared against one positive and 4,095 negatives instead of seven. Gradient caching plus a surrogate loss keeps that affordable in memory.
The payoff, on 300 SME-verified question/answer/source triples: about 12% more correct sources retrieved, and a little over 4% better answer accuracy under LLM-as-a-judge — measured against a golden set a human signed off on, the only number that survives a stakeholder meeting.
The trap in automating the tuning
She also let a coding agent run an overnight hyperparameter search: the pattern where the model edits only the training config, runs ten-minute experiments, and keeps whatever lowers the loss. It worked — she shipped a configuration it found. It also cut the hard negatives to zero or one, and the loss dropped beautifully.
Of course it did. With no negatives the objective is trivial. The loss was optimising the metric, not the retrieval task: the standard failure mode of tuning against a proxy, which finds the cheapest way to lower the number, and the cheapest way is to make the task easier.
The checklist
Retraining triggers on corpus change rate, drift between training and live query distributions, and telemetry: thumbs up/down, and whether users click the sources returned. Click-through collapse shows up before any offline metric does.
If you run internal search over Confluence, Jira or a code host, this order saves GPU weeks:
- Prove the failure is retrieval. Log questions where the right document exists but is not in the top-K.
- Audit chunking before models. Tables that lose column headers and code split mid-function fail whatever the embedding quality.
- Check the tokenizer. Above a small share of unknown tokens, fine-tuning is the wrong fix.
- Build the golden set first. 200-300 SME-verified questions with the URLs that answer them.
- Mine hard negatives from your own index, in a similarity band, not at random.
- Write down the task before you automate it. A tuning agent will find the degenerate solution unless the objective prevents it.
- Instrument the human signal. Clicks and thumbs lead; recall@k lags.
The unglamorous conclusion: for most enterprise RAG systems the bottleneck is not the generator. It is whether the words your business actually uses have vectors that mean something. That is a data problem with a training loop attached, and it is cheaper to audit than to guess.
Source: Rachel Shalom (Dell), "Finetuning Your Embedding Model for Better Search: Learning from Agentic Search at Dell," QCon AI, published by InfoQ on 26 November 2026. Figures and architecture details are as she presented them.
Earlier on this blog: Why RAG systems fail in production covers the retrieval pipeline end to end, and Boring architecture beats clever architecture applies the same audit-before-you-buy instinct to backend decisions.
Header photo: card catalog at the John Rylands Library by Alicia Fagerving, CC BY-SA 3.0, via Wikimedia Commons, cropped and resized.