The Tokenizer Mismatch in RAG Pipelines

Tokenizer Drift When building a Retrieval Augmented Generation (RAG) pipeline, we usually focus on the models. We pick the best local LLM, we pick the best embedding model, and we wire them together in Spring AI. But there is a hidden trap in the pipeline that is rarely talked about. It lives in the step right before the embedding model, called Chunking. To understand why your local RAG pipeline might be silently failing, you first have to understand why your application is using two different tokenizers at the exact same time. ...

November 4, 2026 · 4 min · Ricky Surya Adiputra

Why I Built My Own Local RAG Pipeline Instead of Using an AI Agent

“MCP is the future, it will revolutionize how AI interacts with APIs”, they say. The hype around Agentic AI and Model Context Protocol (MCP) is deafening. Every day, we see demos of LLMs using MCP to browse the web, query APIs, and make autonomous decisions. It looks like magic. But if you are building software for a critical enterprise system or any critical industry involving human safety, magic is exactly what you should stay away from. ...

October 28, 2026 · 3 min · Ricky Surya Adiputra