How Dell Fine-Tuned Embedding Models to Fix Internal Agentic Search Failures
Dell engineer Rachel Shalom detailed how fine-tuning small open-source embedding models resolved retrieval failures caused by proprietary enterprise terminology.

When enterprise search systems encounter proprietary terminology, off-the-shelf embedding models frequently fail to retrieve accurate context. Rachel Shalom, a lead on Dell's internal AI solutions team, recently detailed how her team resolved this issue by fine-tuning targeted embedding models for their multi-agent search system, which spans internal repositories like Confluence, Jira, and GitHub.
Initial testing revealed that Dell's semantic search repeatedly failed on queries involving proprietary product names such as PowerScale, CloudIQ, and PowerProtect, as well as internal acronyms and technical workflows. Because general embedding models are pre-trained on internet-scale text via masked language modeling, they often lack representation for enterprise-specific language or assign generic token meanings to custom technical terms.
Dell's multi-agent architecture and privacy constraints
Dell built a hierarchical multi-agent internal search system powered by a central orchestrator or supervisor agent. This supervisor routes incoming user queries—ranging from bug resolution steps to project onboarding—to dedicated micro-agents equipped with specific toolsets, including GitHub, Confluence, GitLab, Security (OS CVE resolutions), and database agents. Micro-agents interact solely with the central supervisor to keep context windows focused and efficient.
Privacy requirements heavily dictate Dell's technical stack. The system runs entirely on-premise on Dell infrastructure, storing vectors in pgvector and using Langfuse for observability. The workflow integrates directly into internal developer tools as a Model Context Protocol (MCP) server for environments like Windsurf and Claude Code. Data ingestion runs every two days via automated pipelines, processing attachments, code Abstract Syntax Trees (AST), and reformatted Markdown context.
While enterprise environments with strict data security often restrict processing to local hardware, developers testing public or hybrid AI workflows can evaluate top AI models cheaply through one API at https://apixoai.online.
Model selection and InfoNCE fine-tuning
To adapt embeddings to Dell's custom language, Shalom's team evaluated open-source base models that satisfied strict corporate licensing requirements, which prohibited certain open-weights models like the BGE family. They ultimately selected Google's EmbeddingGemma (2K context window, strong code search optimization) for GitHub contexts, and Nomic Embed (8K context window, fully open training code and dataset) for Confluence documentation.
Fine-tuning utilized contrastive learning powered by the InfoNCE loss function. This mathematical objective optimizes the vector space by pushing cosine similarity scores higher for valid question-answer pairs (positives) while increasing distance for irrelevant chunks (negatives). Additionally, task-specific prefixes—such as distinguishing search_query from start clustering—were implemented to prevent conflicting reward signals across distinct operational tasks.
Synthetic dataset creation and autonomous hyperparameter tuning
Preparing high-quality contrastive training pairs required a structured data pipeline:
- Positive Generation: An LLM generated three target questions for each processed Confluence text chunk.
- Hard Negative Mining: The un-tuned base model retrieved candidate chunks from the vector database. Chunks with cosine similarity scores between 30% and 80% were designated as hard negatives—documents that were topically related but lacked the exact answer. Seven hard negatives were retained per triplet sample.
- Automated Training Loops: Dell implemented an autonomous research setup inspired by Andrej Karpathy's "Auto Research" methodology. An LLM agent managed the fine-tuning execution, automatically adjusting parameters like learning rate and batch size across repeated 10-minute training iterations overnight, retaining parameter updates that successfully reduced loss.
What it means for developers
Dell's implementation highlights critical design principles for engineering production-grade RAG and agentic systems:
- Off-the-shelf embeddings have boundaries: Commercial and public general-purpose models fail when queried on proprietary acronyms, specialized product names, or internal language. Evaluating vocabulary token coverage can confirm whether domain adaptation requires fine-tuning or full pre-training.
- Hard negatives drive retrieval accuracy: Synthetic data generation is significantly more effective when combined with hard negative mining. Filtering candidates within a 30% to 80% similarity window forces the model to learn fine-grained semantic boundaries rather than trivial distinctions.
- Small models offer performance advantages: Highly focused, lightweight embedding models (such as 2K–8K context open-weights) running on-premise provide low-latency retrieval while preserving enterprise privacy requirements.
- Automated hyperparameter exploration works: Leveraging LLM-driven execution scripts to iteratively test parameters against validation loss significantly reduces manual effort during embedding fine-tuning.
Source: Finetuning Your Embedding Model for Better Search: Learning from Agentic Search at Dell — InfoQ AI & ML. Written by the Apixo team from that report.
One key for Claude, GPT, GLM, DeepSeek and more. Pay per token with crypto.
Get your API key

