Back to home

Compare

Comparing: RAG’s Bottleneck Is Data Engineering, Not the Model & RAG 落地瓶颈不在模型 — 企业知识库竞争转向数据工程

AEN
RAGLangChainMilvus·

RAG’s Bottleneck Is Data Engineering, Not the Model

A key fact: when a RAG (retrieval-augmented generation, which retrieves external material before the model answers) system performs poorly in production, about 90% of the problem lies in document parsing, chunking, vectorization, and retrieval—not in the large language model itself. This means that when enterprises deploy knowledge bases, the scarce capability is often not a stronger model, but the ability to organize and retrieve internal information.

What this is

The standard RAG pipeline has five steps: parse documents, split text, generate vectors, build an index, then retrieve and rerank results before sending the selected material and the question to the model to generate an answer. RAG primarily addresses three problems: outdated knowledge, fabricated answers, and the inability to trace sources.

Chunking quality determines the ceiling for retrieval: oversized chunks introduce noise, while chunks that are too small lose context. The Chinese experience value cited in the article is 300–800 characters per chunk, with 50–100 characters of overlap retained. FAISS is suitable for smaller-scale deployments; once the corpus reaches one million documents, Milvus or Elasticsearch becomes worth considering.

Performance usually improves through three measures: hybrid retrieval combining vector search and keyword search, a reranking model that selects and reorders the initial results into the top results, and rewriting vague questions. This also reveals the core distinction between RAG and fine-tuning: when knowledge changes frequently or answers need source citations, RAG should be the priority.

Industry view

We have noticed that frameworks such as LangChain are turning parsing, retrieval, reranking, and orchestration into standard components. Enterprise AI projects are shifting from “Which model should we choose?” toward “How do we make private data usable?” This will increase the value of data governance, access control, and retrieval engineering. It may also turn knowledge-base development from a one-off model project into a business infrastructure that requires continuous maintenance.

That said, RAG is not yet mature. The counterargument is clear: retrieval can only find content that already exists and has been processed correctly. If the source material is outdated, permissions are poorly configured, or documents are chunked improperly, the model will still produce incorrect answers. Moreover, citing a source only shows that an answer is based on a particular passage; it does not guarantee that the passage itself is correct. Equating the accuracy gains from reranking directly with overall system reliability still overstates the case.

Impact on regular people

For enterprise IT: Budget priorities may shift from training proprietary models toward cleaning documents, isolating permissions, and building an evaluable retrieval pipeline. Existing systems will also need continuous, stage-by-stage performance testing.

For individual professionals: Assistants connected to enterprise knowledge bases will become better at citing policies, contracts, and project records. Users will still need to verify sources and remain alert to outdated versions or materials they are not authorized to access.

For the consumer market: Customer service, shopping, and software assistants will increasingly provide specific answers with source citations. At the same time, the quality of the experience will depend more directly on how accurately users describe their problems and whether they are willing to provide additional information.

Source: juejin.cn
BZH
RAGLangChainMilvus·

RAG 落地瓶颈不在模型 — 企业知识库竞争转向数据工程

一个关键事实是:RAG(检索增强生成,让模型回答前先检索外部资料)系统线上效果不佳时,约九成问题出在文档解析、切分、向量化与检索,而不是大模型本身。这意味着,企业部署知识库时,真正稀缺的往往不是更强的模型,而是整理和调用内部资料的能力。

这是什么

RAG 的标准链路包括五步:解析文档、切分文本、生成向量、建立索引、检索并重排,最后把资料连同问题交给模型生成回答。它主要解决知识过时、答案编造和无法溯源三个问题。

切分质量决定检索上限:块太大容易引入噪声,太小又会丢失上下文。文章给出的中文经验值是每块 300—800 字,并保留 50—100 字重叠;规模较小时可用 FAISS,达到百万级文档则可考虑 Milvus 或 Elasticsearch。

效果提升通常来自三件事:向量检索与关键词检索混合召回、用重排模型把粗排结果精选到前几条,以及改写模糊问题。RAG 与微调的核心区别也在这里:知识频繁变化、需要引用来源时,应优先选择 RAG。

行业怎么看

我们注意到,LangChain 等框架正在把解析、检索、重排和编排做成标准组件,企业 AI 项目正在从“选哪个模型”转向“怎样让私有资料变得可用”。这会提升数据治理、权限控制和检索工程的价值,也可能让知识库建设从一次性的模型项目变成持续维护的业务基础设施。

但这并不意味着 RAG 已经成熟。反对意见很明确:检索只能找到已经存在且被正确处理的内容,资料过期、权限混乱或切分不当,模型仍会给出错误答案;而且引用来源只能说明答案依据了某段文字,不能保证那段文字本身正确。把重排带来的准确率提升直接等同于系统可靠,仍有夸大成分。

对普通人的影响

对企业 IT:预算重点可能从训练专属模型,转向清理文档、隔离权限、建设可评估的检索链路;已有系统也需要按环节持续测效果。

对个人职场:接入企业知识库的助手会更擅长引用制度、合同和项目记录,但使用者仍需核对出处,并警惕检索到旧版本或无权查看的材料。

对消费市场:客服、购物和软件助手会更常给出带出处的具体回答,同时问题描述是否准确、用户是否愿意补全信息,也会更直接地决定体验好坏。

Source: juejin.cn