Home / Blog / Presentation: Finetuning Your Embedding Model for Better…
Tech News

Presentation: Finetuning Your Embedding Model for Better Search

Dell fine-tuned EmbeddingGemma and Nomic Embed on 9 billion tokens of Confluence data, lifting correct retrieved sources by at least 12% for internal search.

By Dillip Chowdary • Nov 28, 2026 • Source: InfoQ

Presentation: Finetuning Your Embedding Model for Better Search
Image: InfoQ

At a glance

Speaker
Rachel Shalom, Dell
Event
QCon AI, 49-minute talk
Base models
EmbeddingGemma and Nomic Embed
Training data
About 9B tokens of Dell Confluence
Hardware
Four H100 GPUs, batch of 128 queries
Result
At least 12% more correct sources

Dell fine-tuned open-source embedding models on its own Confluence content after its internal agentic search kept failing on Dell-specific terms such as PowerScale, CloudIQ and PowerProtect. Rachel Shalom, an applied AI scientist and Distinguished Engineer on Dell's internal AI team, walked through the project in a QCon AI talk published as InfoQ's presentation recording, covering data preparation with hard negatives, distributed InfoNCE training on H100 GPUs and evaluation with an LLM judge.

This article reports the full method from the 49-minute session: why Dell suspected the embedding model, how it picked base models, how it built training triplets, how it trained and tuned, and what the results were. It is written for engineers running retrieval-augmented generation (RAG) over internal documents that use their own product names and acronyms.

01PowerScale, CloudIQ and an internal-language gap

Shalom leads an agentic search system used by Dell employees and R&D teams. It searches internal sources including GitHub, GitLab, Jira, Confluence, SharePoint and databases, with a supervisor routing questions to specialist agents and semantic search running over pre-ingested data. The system kept missing questions about internal products and acronyms.

Her team's hypothesis was that the off-the-shelf embedding model did not understand Dell's internal language. Shalom noted RAG has many possible failure points and that this was the one they tested. A vocabulary check on the roughly 30,000-token base vocabulary found unknown tokens were mostly Base64 strings, box-drawing characters, checkmarks and long camelCase words, a small share, so the team fine-tuned rather than training from scratch.

02Contrastive triplets and the InfoNCE loss

Shalom described embedding training in two phases. Pre-training uses masked language modeling over a broad crawl of Wikipedia, books and public GitHub repositories, which gives a general grasp of language but not fine-grained meaning. Fine-tuning then uses high-quality pairs or triplets: an anchor question, a positive answer and a negative answer.

The common loss for that step is InfoNCE. Within a batch, it compares the cosine similarity of a question and its positive against the similarity of that question to every other document, which are all treated as negatives. Training pushes positives closer to the query in embedding space and negatives further away.

She also covered task prefixes, which address conflicting signals when one model serves both question answering and clustering. Whether two sentences count as similar depends on the task, and the prefix tells the model which task it is doing.

03EmbeddingGemma, Nomic Embed and 9 billion tokens

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

Dell chose base models on licensing and commercial use, which required legal approval, plus openness of weights, training code and data, retrieval benchmarks, inference cost and latency, multilingual support and context length. The team picked EmbeddingGemma, with about a 2K context, for code repositories and Nomic Embed, with an 8K context and released training code and data, for Confluence. An earlier attempt on the BGE family was redone after, Shalom said, Chinese models were banned at some American companies.

Training data came from Confluence spaces across almost all of Dell, about 9 billion tokens. An LLM generated three questions per existing chunk. For hard negatives, the team pulled chunks with 30% to 80% similarity from the vector database, took the top 20 and kept seven per query.

  1. Generate questions An LLM writes three synthetic questions for each Confluence chunk.
  2. Mine hard negatives Retrieve chunks with 30% to 80% similarity and take the top 20.
  3. Keep seven negatives Select seven negatives per query, following the Nomic paper.
  4. Build triplets Pair each question with one positive chunk and seven negatives.

04Four H100s, 4,095 negatives and overnight tuning

Training ran on four H100 GPUs with a batch of 128 queries, each with one positive and seven negatives, or 1,024 documents per GPU. An all-gather step let each query be compared against 4,095 negatives across the cluster. To fit memory, forward passes ran in chunks of 32 without stored gradients, using GradCache and a surrogate trick for the backward pass.

For hyperparameters, Shalom used Andrej Karpathy's "Auto Research" approach with Claude Code running Opus 4.6. It ran roughly 10-minute experiments overnight and kept settings that lowered loss, and she chose final settings from its results. It suggested cutting negatives to zero or one, which produced very low loss, but she kept seven.

05A 300-question golden set and LLM-as-a-judge

Evaluation used a golden dataset of 300 questions verified by subject-matter experts, each with an answer and source URLs. On retrieval, measured as recall at 1, 5 and 10, the fine-tuned model returned at least 12% more correct sources. Answer quality was scored with an LLM judge on question-to-answer and answer-to-answer comparisons, and answer-to-answer improved by a little more than 4%.

Shalom called that "a very good improvement" but "not a great success." After training, the positive similarity distribution shifted up and the negative one shifted down, though the overlap did not fully disappear. Her main lesson was that data preparation was harder than the fine-tuning itself.

Everything runs on-prem with pgvector as the vector store, and no external API was used for training. Changed content is re-embedded every two days. Retraining triggers include a fast rate of data change, such as a million new Confluence pages in a month, drift from the training distribution, thumbs-up and thumbs-down feedback and source click-through rates.

Note: Shalom did not test OpenAI embeddings because sending Dell data to OpenAI was not permitted, and no exact count of training examples was given.

Frequently asked questions

Why did Dell fine-tune its embedding model?

Dell's internal agentic search kept failing on questions about internal products and acronyms such as PowerScale, CloudIQ and PowerProtect. The team suspected the off-the-shelf embedding model did not understand Dell's internal language.

Which embedding models did Dell fine-tune?

Dell used EmbeddingGemma for code repositories and Nomic Embed for Confluence content. An earlier attempt with the BGE family was redone.

How did Dell create hard negatives for training?

The team retrieved chunks with 30% to 80% similarity to each synthetic question, took the top 20 and kept seven negatives per query. Each training triplet had one question, one positive chunk and seven negatives.

What hardware did Dell use to train the embedding model?

Training ran on four H100 GPUs with a batch of 128 queries, and an all-gather let each query be compared against 4,095 negatives.

How much did fine-tuning improve Dell's search?

Retrieval returned at least 12% more correct sources on a 300-question golden set, and LLM-judged answer-to-answer quality improved by a little more than 4%.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →