The MongoDB Podcast

Podbit · The MongoDB Podcast

Modern AIOps: What It Takes to Build Reliable AI Products

Explore episode Jun 5, 2026
Technology
Human vs. Automated Evaluation: When to Use Each

Modern AIOps: What It Takes to Build Reliable AI Products · Jun 5, 2026 Technology

Manual evaluation of LLM traces is not scalable, but it's essential early on for establishing a baseline and understanding failure modes. Once that baseline exists, LLM-as-a-judge — where one model scores another's outputs — can automate ongoing evaluation at scale. Langtrace acts as the reporting and visualization layer for both approaches.

Where this was said

Live Demo: Setting Up Langtrace with MongoDB Atlas Vector Search

At 37:00 · chapter starts 28:17

The demo segment is the most concrete part of the episode. Karthik creates a fresh Langtrace project in real time, generates an API key, and shows that the integration requires a single initialization call in the Python script. The demo script queries MongoDB Atlas Vector Search on the pre-vectorized MFlix dataset, searching for movies related to 'time travel' across 500 candidate embeddings and returning the top 10 results by cosine similarity score. When the script runs, Langtrace immediately captures two spans: one for the OpenAI embedding generation call (showing model name, input text, token count) and one for the MongoDB aggregation (showing the vector index name, the plot-embedding path, top-k settings, and matched document metadata). Karthik then demonstrates manual evaluation — creating a custom 'retrieval' metric scored 0-2 and scoring the MongoDB trace — and explains how the human evaluation dashboard plots confidence (proportion of traces evaluated) and score trends over time. He grounds the demo in a practical scenario: in a customer support chatbot, this trace would reveal whether the pricing documentation was actually being matched as the top result for pricing questions. If it isn't, the trace tells you exactly where to intervene.

Technology
Live Demo: Tracing a MongoDB Atlas Vector Search Query with Langtrace

Modern AIOps: What It Takes to Build Reliable AI Products · Jun 5, 2026 Technology

With a simple Python script querying MongoDB's Atlas Vector Search on the MFlix movie dataset, Langtrace captures the entire trace: the OpenAI embedding call, the MongoDB aggregation pipeline, top-k settings, cosine similarity scores, and matched documents — all visible in a single dashboard without any custom instrumentation code.

Similar podbits