Ask HN: Is RAG the Future of LLMs?
What RAG Is (and Isn’t)
- Seen less as a standalone “technology” and more as a pattern: retrieve relevant info, add it to the prompt, let the LLM answer.
- Many argue that as systems get more complex (query rewriting, graphs, rerankers, tools), people will just call them “applications using LLMs” rather than “RAG.”
- Retrieval doesn’t have to be vector search; any relevance function (full‑text search, knowledge graphs, SQL, tools) qualifies.
Arguments RAG Is Here to Stay
- Even with huge or “infinite” context, inference cost and latency scale with tokens; selective retrieval remains economically necessary.
- Large contexts can hurt focus; RAG plus reranking helps “get the right neurons firing.”
- You’ll always need fresh, private, or user‑specific data that wasn’t in training.
- RAG acts like a cache/index over large corpora, analogous to database indexes vs full table scans.
- For many see‑today use cases (domain Q&A, style enforcement, real‑time data) it’s cheaper and more maintainable than fine‑tuning.
Arguments RAG Is a Temporary Hack
- Some see it as a stopgap until very long or effectively infinite context and better memory/attention architectures exist.
- Others call both RAG and long context “hacks” compared to future architectures (e.g., precomputed KV memories, differentiable indexes, world models).
- A minority believe LLMs with online/continuous learning and large memory could largely replace RAG.
RAG vs Fine‑tuning and Other Alternatives
- One cited paper claims RAG and domain fine‑tuning each give similar gains and stack additively.
- Fine‑tuning is viewed as expensive, hard to update, and less observable; RAG is cheap, up to date, and inspectable.
- Alternatives/adjacent ideas: knowledge graphs, world models, differentiable search indexes, token‑level or “built‑in” retrieval, agent workflows.
Tooling, Implementation, and Best Practices
- Libraries like LangChain/LlamaIndex are useful but fast‑moving and sometimes easier to replace with custom code.
- Vector databases are optional; you only need them for large semantic‑searchable corpora. Embeddings are tied to retrieval, not to a specific LLM.
- “Advanced RAG” includes query reformulation, recursive retrieval, hierarchical summarization, and tool calls.
Hallucinations and Reliability
- RAG reduces hallucinations by grounding responses but doesn’t eliminate them.
- Some argue robust solutions require additional mechanisms (e.g., error modeling, human QC, or models able to recognize unknowns).