BlogRun AI wherever your compliance framework demands. Read blog >
BlogRetrieval accuracy is now a competitive advantage Read blog >

Database Digest Vol. 2

Accuracy at Scale

Discover how to make the agents on top of your foundation accurate, featuring a production glimpse from LG U+.

Download Magazine

Closing the trust gap

Hallucinations are a retrieval problem, not a model problem. Outdated or inaccurate prompts fuel false agent confidence.

Fast, cheap, and accurate pipelines

Production retrieval requires solving accuracy, latency, and cost simultaneously. Getting the data layer right ensures embedding models, quantization rules, and query strategies compose cleanly without forcing a costly replatform.

  • Truncate vector size via Matryoshka learning rules.
  • Binary quantization speeds queries up by 60%.
  • Asymmetric retrieval drops token costs up to 83%.
Read announcement
Infographic announcing MongoDB version 8.3, showing performance improvements compared to version 8.0 from October 2024. It highlights 35% more write throughput, 45% more read throughput, and 15% more transaction throughput.

The architectural roots of hallucinations

When an LLM invents a data point, an entity, or a corporate policy that doesn't actually exist, it is almost always because the retrieval pipeline that fed the prompt was inaccurate, stale, or incomplete. There is a precise name for the space between a system that returns basic answers and a system whose answers can be confidently acted on in production: The trust gap.

An agent reasoning over yesterday's customer snapshot, or an embedding model that was swapped without reprocessing underlying records, creates a major operational hazard. It does not produce a visibly wrong answer; it produces a highly confident hallucination. A hallucination in a single sandbox demo is a curiosity, but the same error applied across thousands of live interactions a minute is an incident.

Introducing contextual integrity

Accuracy is a foundational architectural property best defined as contextual integrity: The discipline of keeping live operational data, vector embeddings, search indexes, and agent state automatically consistent rather than manually reconciled after the fact.

When these four variables live in the same underlying record served by the exact same query path, there is no synchronization step for accuracy to leak through. The retrieval an agent receives is securely grounded in the operational truth of the exact same millisecond it was issued.

Voyage AI’s models lead the Retrieval Embedding Benchmark (RTEB), outperforming comparable models from Gemini, Cohere, and OpenAI on the enterprise RAG tasks agents actually run.

MongoDB has delivered the building blocks required to close the trust gap natively within the data layer:

Line graph comparing retrieval quality against price per million tokens for Voyage AI models. It shows voyage-4, voyage-4-lite, and voyage-4-nano achieving higher quality scores with asymmetric retrieval compared to symmetric retrieval and the voyage-3.5-lite baseline.

Earn Skill: Voyage AI with MongoDB


AI-Powered medical reports

Unifying patient data, clinical notes, and medical literature into a single pipeline helps reduce clinician burnout and paperwork loops.
AI-powered workflow showing document upload, template definition, LLM prompting, and structured MDT report generation from unprocessed documents.

Explore the solution

The builder's journey: Core filtering rules

For engineering teams looking to move past conceptual talk, practical implementation requires examining real filtering logic under load. A key example is filtered vector search.

MongoDB handles this by filtering by attributes (such as user ID) first and then running the vector search. In contrast, alternative relational planners often run the vector search first and attempt to apply filters afterward. When relational engines search first, highly relevant results frequently fall out of the candidate evaluation set before they can ever be scored. This minor architectural variation has massive accuracy consequences at enterprise production scale.

Watch: The Builder’s Journey: Building AI Apps With MongoDB

LG U+ balances 3.5M monthly consultations

Conceptual architecture arguments hit a very clear operational ceiling when a business runs a call center taking 3.5 million live customer inquiries a month. Korean telecom giant LG U+ set out to build Agent Assist: An intelligent internal tool giving 4,000 human agents real-time transcription, automated inquiry categorization, and contextual summaries during live consultations.

Their legacy relational database simply could not handle vector embeddings, transactional data, and real-time query tests simultaneously within the same application path. By migrating core operational records off Postgres and consolidating them onto MongoDB Atlas, the team entirely eliminated the latency-prone synchronization layer between disparate systems. $vectorSearch runs semantic similarity algorithms natively against the exact same data collections that human agents query for transaction histories.

The service launched just four months after development began, holding sub-second query latency even during peak morning spikes. Processing time per call dropped 7%, and resource efficiency improved 30%. Initially deployed for 1,200 agents, the system now handles over a million queries per week and is scaling toward 2,300 agents.

The production checklist before you ship

What LG U+ demonstrates is the absolute checklist a data layer must deliver before a production agent can be trusted:

  1. Co-located indexes: The AI search index and live operational data must reside in the exact same database cluster so agents never retrieve from one version of truth while acting on another.
  2. Sub-second latency: Semantic queries must execute in under a second under heavy loads or the agent response arrives too late to be operationally useful.
  3. Auto-scaling infrastructure: The platform must automatically scale to absorb morning call spikes without requiring engineers to manually re-provision nodes.
  4. Schema flexibility: The underlying data model must dynamically accommodate varied conversation shapes without forcing rigid schema migrations every time a business iterates.
LG U+ logo
"Managing both vector and operational data in MongoDB opened a new world to our team."
Minkyu Ha
Senior Software Engineering Manager at LG U+

Drive AI Transformation

Database Digest

The Unified Intelligence Layer: Powering the Agentic Era

Streamline enterprise AI by replacing fragmented stacks with unified data.

Download Magazine

TABLE OF CONTENTS