The article argues that many developers over-engineer Retrieval Augmented Generation (RAG) stacks by immediately adopting complex embedding and vector database architectures. Instead, it proposes a tiered approach based on data freshness, corpus stability, query patterns, and scale. For most use cases, simple BM25 full-text search is sufficient, offering sub-10ms latency and zero ML complexity. For better flexibility, agentic query rewriting using LLMs (costing approximately $0.001 per query via models like GPT-4o-mini) can resolve vocabulary mismatches and proprietary terminology issues without the need for re-embedding. For more complex semantic needs, hybrid search—combining BM25 with embedding-based reranking—is recommended, though it introduces 200-500ms of latency. For high-churn data (over 10% daily updates), on-the-fly embedding ensures perfect freshness, while a hot/cold tiering strategy can optimize costs for large corpora by pre-embedding frequently accessed documents. Full pre-embedding is reserved for massive-scale operations (over 10,000 queries daily) with stable data, as model deprecation in these systems creates significant re-indexing costs and downtime. Ultimately, the author suggests that 60% of systems should stop at full-text search combined with query rewriting, rather than jumping to complex, high-maintenance vector architectures.
Read original
hackernews