RAG Platforms vs Custom RAG Stacks Built in China

A rag bot can be bought as a packaged retrieval platform or built as a custom stack delivered by a Chinese engineering team. The platform path starts in days and hides the ingestion, embedding, and retrieval internals inside a managed panel; the custom path costs more up front and hands over the indexing pipeline, the retrieval rules, and the guardrails as owned artifacts. The decision should not be made on answer quality alone, because both sides can produce reasonable first answers on clean documents. The real separation appears in what each does when documents change, when the llm provider needs to switch, and when a compliance review asks to inspect why an answer was given. This article compares the two on one recurring knowledge-heavy task and sets out the checklist before either side is chosen.

What each side ships as the default RAG loop

A packaged RAG platform ingests uploaded files, runs a fixed chunking and embedding process, stores vectors in its managed store, retrieves by similarity search, and passes the retrieved passages to a model for generation. The buyer configures document folders, retrieval thresholds, and prompt wording through settings; the chunk size, embedding model, vector schema, and reranking logic are usually fixed or limited to a preset list. Platforms differ in how much of the retrieval internals they expose, but the general pattern is that the buyer sees outputs and settings rather than the pipeline code.

A custom RAG stack delivered from China includes the ingestion pipeline, the chunking rules tuned to the document type, the embedding and vector database choice, the retrieval and reranking layer, the generation prompt policy, and the logging that records sources and scores. Each component is versioned in a repository the buyer can access, and the retrieval behavior can be changed at the rule level rather than through a settings menu. The tradeoff is that the buyer or its retainer partner must maintain the pipeline as documents, models, and business rules evolve.

Chinese build teams in this space commonly assemble open-source retrieval components rather than a proprietary panel, which means the delivered stack can run on the buyer’s own cloud account and be operated by a different engineer after handover. Buyers should ask which components are open source, which are custom code written for the project, and whether any third-party retrieval service is embedded in the path. A stack that mixes open-source pieces with a vendor-managed retrieval service sits between the two extremes, and its portability should be assessed component by component rather than labeled custom or platform wholesale.

Head to head: ingesting and updating a manual library

Take a concrete task: a product manual library of about 250 documents, updated monthly, with revisions that supersede older sections and occasional withdrawn documents that must stop being answered. On the platform side, ingestion is a file upload or connector; updates are usually a re-upload of the changed file. The platform handles embedding and storage, but the buyer must verify that old passages from a revised document are actually replaced rather than duplicated beside the new ones, and that withdrawn documents are removed from the index rather than left in storage. Supersession logic, where a new manual version invalidates specific clauses in the prior version, is often beyond what a preset chunking model tracks.

On the custom side, the ingestion pipeline can encode document metadata: version, effective date, product line, audience, and supersession links. Chunking can follow the manual’s own heading structure instead of a fixed token window, so a retrieved passage keeps its section context. Updates run as a pipeline step that marks old versions inactive, removes their vectors, and re-indexes the replacement, with a log showing which passages changed. Deletion of a withdrawn document is a recorded operation, not a manual cleanup inside a panel. The ingestion rules a vendor should follow are detailed in document ingestion rules for RAG vendors, and the same rules apply whether the stack is packaged or built.

Where the platform still wins is speed and maintenance relief. A small manual library that changes slowly, with no supersession complexity, rarely justifies a custom pipeline; the platform’s defaults handle it, and the buyer avoids owning engineering upkeep. The custom side earns its cost when the library mixes formats, carries version rules, or serves audiences that must not see each other’s documents.

Guardrails that survive a model or provider change

Guardrails in a RAG bot cover refusal on off-topic questions, limits on what the retrieved passages may support, checks that the answer does not add facts beyond the sources, and escalation when retrieval scores are weak. On a platform, the guardrail layer is part of the managed product: the buyer configures thresholds and refusal wording, but the enforcement code stays with the vendor. A platform update can change how a refusal triggers, and the buyer may not see that change until a review session catches it.

On a custom stack, the guardrail layer is delivered alongside the retrieval code: an input filter, a source-grounding check before the reply is sent, a confidence threshold that routes low-score retrieval to a human, and an audit record for each intervention. The rules can be reviewed in code, versioned against the evaluation set, and re-tested after every change. When the underlying model changes, the buyer can adjust the grounding check rather than waiting for the platform to update its defaults. The cost is that this layer needs its own maintenance; a guardrail that was tuned for one model’s wording can drift after a provider upgrade.

LLM provider choice and lock-in on each side

The llm provider is the model service that generates the final answer, and sometimes the service that produces embeddings. A packaged platform usually supports a fixed set of providers, with the choice exposed in settings; switching to a provider outside that list is not possible without moving off the platform. The platform may also train or adapt its retrieval defaults on its own model stack, which makes a later migration carry hidden re-indexing work. Buyers should ask which providers are supported, whether embeddings and generation use the same provider, and what re-indexing a provider switch would require.

A custom stack can be built behind a provider abstraction, so generation can move between model services without rewriting the retrieval layer. Embeddings are the harder dependency: changing the embedding model usually requires re-encoding the whole document store, because vectors from one model are not comparable to vectors from another. The custom side can choose a portable embedding model and document that migration path, but the re-encoding cost still appears whenever the embedding model changes. The provider and access questions a security review should raise are listed in the model-access security review, and buyers should ask both platform and build vendors the same list.

Where a hybrid route usually starts

Many buyers do not choose permanently on day one. A common sequence starts with a packaged platform to validate the question set, the answer style, and the document types that visitors actually ask about, then moves the proven knowledge base into a custom stack once the use case stabilizes. The risk in that sequence is treating platform configuration as the only record: prompts, approved phrases, evaluation questions, and source metadata should be exported into plain documents from the start, so the later migration does not reconstruct behavior from session logs.

The hybrid can also run the other way: a custom-built core for sensitive internal documents, with a platform bot facing public visitors where data control matters less. In that arrangement the two sides keep separate indexes and separate guardrail policies, and the routing between them is decided by visitor segment before retrieval. Retrieval quality tests before committing to a vendor are covered in retrieval quality tests for RAG vendors, and those tests should run on whichever side the buyer starts with.

Checklist before picking either side

Before comparing quotes, list the document types and their formats, the update and supersession rules, the audiences and any access separation, the expected volume and peak load, the provider constraints or preferences, and the compliance review the bot will face. Then score each candidate on four points: whether retrieval internals are inspectable, whether guardrail rules are portable, whether the provider can be switched with a defined migration path, and what the exit export contains. A platform that scores poorly on portability can still be the right choice for a simple, stable, low-sensitivity use case; a custom stack that scores well on ownership still requires a maintenance arrangement the buyer can afford after launch. The two should not be compared on demo answer polish, because a curated demo masks the retrieval and maintenance differences that decide the real project.

One more point belongs on the checklist: how retrieval quality is measured after launch. A RAG system drifts as documents and questions change, and neither side automatically detects that drift. The buyer should have a fixed evaluation set, a monthly review of low-score sessions, and a process for adding failed questions back into the test set. Whether that review runs inside the platform’s dashboard or against the custom stack’s logs, it is the mechanism that keeps answer quality from quietly decaying over the first year. Buyers should confirm the chosen side can produce the session-level records those measurements need: question, retrieved sources, scores, reply, and reviewer rating, each tied to a date and document version.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *