Bharat Singh

AI Systems Architect and Engineering Lead directing high-throughput Information Retrieval (IR) architectures, autonomous agent platforms, distributed systems, and knowledge graphs across enterprise scale (3,500+ commercial websites). Tech Lead, AI at Milestone Internet.

Deterministic Guardrails in Stateful Multi-Agent Loops: Preventing Infinite Trajectory Drift

When autonomous multi-agent systems transition from sandbox demos to production enterprise infrastructure, they encounter a harsh operational reality: probabilistic reasoning loops are inherently prone to trajectory drift. In a single-turn prompt, an LLM error produces an inaccurate response. In a stateful, multi-agent cyclical graph (such as LangGraph or custom state machines), a single reasoning error compounds across subsequent turns. ...

September 16, 2026 · 5 min · Bharat Singh

Context Caching vs. Semantic Caching: Latency Trade-Offs Across High-Throughput Agent Workflows

When enterprise engineering teams scale autonomous agent systems and interactive AI applications, latency optimization quickly becomes the dominant bottleneck. A standard multi-step agent workflow requires between three and ten sequential model calls. If each call incurs a Time-to-First-Token (TTFT) of 1.5 seconds, the end-to-end user latency balloons past ten seconds before execution completes. ...

August 19, 2026 · 6 min · Bharat Singh

ColBERT and Late Interaction at Scale: Why Multi-Vector Retrieval Strains Production Memory

In modern neural information retrieval, few architectural concepts have generated as much excitement as Late Interaction, pioneered by Omar Khattab and Matei Zaharia in the ColBERT series. On paper, ColBERT represents an ideal mathematical compromise. It delivers retrieval quality approaching a full cross-encoder while retaining the precomputable index structure of a bi-encoder. On out-of-domain benchmarks like BEIR, ColBERT routinely outperforms dense single-vector models by 5 to 10 points in nDCG@10. ...

July 22, 2026 · 5 min · Bharat Singh

Evaluating RAG Without Ground Truth: Production Pitfalls of LLM-as-a-Judge

When deploying enterprise Retrieval-Augmented Generation (RAG) systems, the hardest operational problem is often not retrieval tuning or prompt engineering; it is evaluation. In academic settings, benchmarks like MS MARCO or HotpotQA provide human-annotated ground-truth labels for every query. In production enterprise applications, users submit tens of thousands of unique, domain-specific queries daily across messy internal documentation, leaving engineering teams without curated ground-truth labels. ...

June 15, 2026 · 6 min · Bharat Singh

From Semantic Nanopublications to Knowledge Graphs: What 15 Years of Machine-Readable Data Taught Us About RAG Grounding

Long before transformer models transformed language generation, distributed systems engineers wrestled with a fundamental challenge: how do you convert sprawling human literature into machine-verifiable, provenance-tracked facts? In 2011, the concept of semantic nanopublications emerged in technical literature (including our work in Nature Genetics, doi:10.1038/ng0411-281) as a solution for scientific data publishing. The core thesis was simple: a machine-actionable fact cannot be a naked string. It must encapsulate three connected components: an Assertion, its Provenance, and its Publication Metadata. ...

May 20, 2026 · 6 min · Bharat Singh

Shrinking Billion-Scale Vector Indexes: Combining Matryoshka Embeddings with Binary Quantization

At enterprise scale, vector search hits a hard physical wall: RAM capacity. Storing 100 million document chunks at 1,536 dimensions in full 32-bit floating-point precision demands over 600 gigabytes of raw memory before allocating a single byte for graph indexes like HNSW. When infrastructure bills outpace retrieval budgets, scaling requires algorithmic compression rather than throwing more high-memory nodes at the cluster. ...

April 18, 2026 · 6 min · Bharat Singh

The Retrieval Fallacy: Why Massive Context Windows Don't Eliminate the Need for IR

Over the past year, the widespread availability of million-token context windows has prompted a recurring refrain among engineering leaders: “Why invest in complex Retrieval-Augmented Generation (RAG) pipelines when we can simply feed the entire document store into the prompt?” In production enterprise systems, this assumption (what I call the Retrieval Fallacy) leads directly to unacceptable latency, unsustainable inference costs, and silent degradation of reasoning fidelity. Large context windows do not render Information Retrieval (IR) obsolete. Rather, they fundamentally shift what retrieval is responsible for: from naive sentence-level segmentation to high-precision contextual topology. ...

March 12, 2026 · 5 min · Bharat Singh

The Paradigm Shift to Late Chunking in Retrieval-Augmented Generation: A Technical and Comparative Analysis

The architecture of Retrieval-Augmented Generation (RAG) systems is undergoing a fundamental transformation, driven by the failure of traditional retrieval pipelines to maintain semantic coherence across fragmented document segments. For years, the industry standard relied on “early chunking” prior to vector embedding, severing the connective tissue of long-form text, isolating pronouns from referents and stripping local segments of their governing global context. This analysis deconstructs Late Chunking, a methodology pioneered by Jina AI and Voyage AI that reverses the traditional pipeline order to preserve full document semantics within individual chunk embeddings. ...

February 9, 2026 · 22 min · Bharat Singh

Reciprocal Rank Fusion vs. Cross-Encoders: Designing the Sub-50ms Reranking Funnel

In enterprise Retrieval-Augmented Generation (RAG) and neural search, relying on a single retrieval modality is rarely sufficient on its own. Standardizing solely on dense vector search leaves notable blind spots for exact-match keywords, alphanumeric identifiers (e.g., part numbers, error codes, legal statute citations), and out-of-vocabulary acronyms. Consequently, production architectures have converged on hybrid retrieval: querying a dense vector index (ANN) and a sparse inverted index (BM25) in parallel. However, once multiple candidate lists are retrieved, engineering teams face a critical architectural decision: How do you merge and rerank candidate documents before context-window injection? While Reciprocal Rank Fusion (RRF) and Cross-Encoder neural rerankers are often treated as competing alternatives, they operate at completely different computational complexities and solve distinct phases of the retrieval lifecycle. This article provides the mathematical foundation, latency estimates, and architectural blueprint for chaining both into an asymmetric sub-50ms reranking funnel. ...

January 15, 2026 · 13 min · Bharat Singh

The Unit Economics of Inference: When to Kill Third-Party AI APIs

When prototyping generative search and agentic workflows, calling third-party APIs for embeddings and cross-encoder reranking is the rational engineering choice. You get state-of-the-art weights behind a simple POST request. Zero infrastructure overhead, zero GPU fleet management, and zero CUDA driver headaches. At production scale, however, that convenience mutates into an operational tax. Third-party APIs charge linear rent on your query traffic. Worse, they introduce compounding network jitter that eats your time-to-first-token (TTFT) budget alive. There comes a precise mathematical inflection point where self-hosting inference on dedicated Kubernetes pods stops being an infrastructure distraction and becomes mandatory systems economics. ...

November 19, 2025 · 7 min · Bharat Singh