19 August, 2026

Deploying RAG for business: the architecture MONA runs in production

Rolling out RAG for business: the architecture MONA runs in production

Enterprise RAG deployment means building a flow where a chatbot first finds the right piece of internal documentation, then uses AI to write an answer with sources. After more than 14,000 projects, we only put a bot into operation when the administrator can see the 5-step architecture, the source of the 70 chunks cut from 10 files, and code that has passed 2 review rounds. The definition is already covered in the article What is RAG. Sources must be visible.

RAG makes the bot look up documents first, then answer

When a customer asks about the rescheduling policy, a bot usually has 2 paths: guess from general knowledge, or find the right document the business has approved. RAG takes the second path. It finds the relevant piece in the knowledge base, hands that piece to the model together with the question, and requires the answer to stay within the sources just found. Look up first, then speak.

Each question goes through 5 processing passes in sequence and 2 cross-checks between the retrieved pieces and the answer, so the team knows whether the fault lies in the knowledge base or in the answer-generation instructions. If the bot grabs the wrong piece, fix the knowledge base; if it grabs the right piece but words it wrong, fix the instructions. Separate the faults and fix them.

We place that flow inside the AI-Native software development model, where both code and sources must be checked by a person.

At MONA, the chatbot on mona.media and the call center 1900 636 648 run on a RAG architecture. One sub-knowledge base of the system loads 10 files into 70 chunks, each chunk tagged with its source so the answer leads back to the right document. These are technical traces we actually use, not a diagram made for presentations.

Put approved documents in the knowledge base; leave live data in the source systems

A good RAG knowledge base starts with choosing sources. Internal documents, published price lists, return policies and stable operating guides are reasonable inputs. Balances, stock levels or order status that change every second should be read from the source system through an API. Don't copy them into files and hope RAG stays right. Choose sources first.

MONA's RAG chatbot greeting visitors on mona.media
The RAG bot is live on mona.media right now, so you can message it and try it yourself.
Data typePut into RAGHow to use it correctly
Approved internal documentsHaveSplit into chunks, tag with file name, section and effective date
Price lists, policiesYes, when versions are clearRemove the old version when the new one takes effect
Stock levels, order statusDon't copy staticallyCall the source system at the moment the customer asks
Legal decisionsReference source onlyHand off to the responsible person to decide

We usually lock 3 minimum metadata fields for each piece: source, document section and version. That way the bot can cite what it relied on, and the administrator can find the file to fix. The team working on AI chatbot for business don't dump a mixed-up pile of documents into the knowledge base and hope the model will tell old versions from new ones on its own.

Before loading, the team runs 3 version checks and 2 cross-checks against the source system for any live data.

See it for yourself: 5 steps from a customer's question to a sourced answer

The flow below is the skeleton of a RAG chatbot. Use it to question the partner who is implementing it: where does each step run, what evidence does it store, and where does the operator look when something goes wrong. There are exactly 5 steps. If a step is missing, keep asking.

  1. Receive the question: keep the customer's input as typed, along with the context we're allowed to use.
  2. Turn the question into a query: normalize what to search for, without adding a conclusion that isn't there yet.
  3. Find related chunks: pull content pieces and their source metadata from the knowledge base.
  4. Generate the answer: give the question and the retrieved pieces to the model and make it stick to the sources.
  5. Answer with sources: show the answer, the referenced documents and the 5-step log so a person can check it.

At step 3, retrieving more is not necessarily better; extra pieces add noise to the answer. At step 4, the instructions must be explicit: if no piece gives enough grounds, say nothing was found and hand off to the responsible person. This fallback is what keeps the chatbot from guessing wildly.

The team runs the flow 5 times as designed and repeats it 2 times with questions outside the knowledge base, because a bot that knows when to stop counts as passing acceptance.

The 5-step flow is also a very clear spec for the engineering team. The article how to write a spec for AI shows how to add inputs, outputs, error cases and acceptance criteria so this flow can be coded and then graded against the same answer key.

Splitting 10 files into 70 chunks so the bot finds the right small piece

If you throw a whole long file at the model, the right part easily gets buried among many irrelevant passages. A chunk is a small piece of a document, big enough to carry one complete idea, together with information on which file it came from. MONA's chatbot sub-knowledge base takes 10 files and splits them into 70 chunks, an average of 7 pieces per file in that set. Small pieces are easy to find.

AI running the knowledge base within the 4 stages of AI-DLC
The operations stage in AI-DLC: a bot on duty 24/7 on a sourced knowledge base.

The number 7 is just the division for this sub-knowledge base, not a formula for every document. A contract with long clauses needs related parts kept together; a price list needs the plan name kept next to its price; an FAQ can be split by question and answer pair. We choose boundaries by meaning, not by chopping evenly by character count.

Each chunk keeps at least 3 traces: source file, source section, version or effective date. When the bot answers wrong, the team opens the log to see which of the 70 chunks it pulled. If the source is right but the wording is wrong, fix the instructions; if the source is wrong, fix the splitting or retrieval. Diagnosing in two halves like this saves a lot of rounds of guessing.

At acceptance, the team tries retrieval 5 times with different ways of asking, then runs 2 times with questions that aren't in the knowledge base to check the fallback.

Do you have a folder of documents and aren't sure it's ready for RAG? Send up to 10 representative files through the MONA chat window. We'll point out which files need old versions removed, where sources must be tagged and how to split chunks so your engineering team can build a trial version on its own.

The bot still answers wrong if 4 spots in the knowledge base are sloppy

RAG keeps a bot grounded in its sources only when the whole chain is done right. Four common faults: chunks cut so they lose meaning, several versions living side by side, no metadata stored, and forcing the bot to answer even when it finds no basis. Just 1 of these faults is enough for answers to drift away from the real documents. Clean the knowledge base first.

Where it's sloppySign in the logHow to fix
Chunk loses contextA piece has the conclusion but misses the conditions before itMerge into 1 complete business idea
Old and new versions coexistTwo chunks return 2 different policiesAdd effective dates, switch off the old version
No metadataThe bot answers but can't point to a sourceTag file, section and version on every chunk
Refusal not allowedFinds nothing but still produces a confident answerAdd a “no basis yet” branch and hand off to a person

In the trial version, we check 2 rates separately: for questions with sources, does the bot pull the right piece, and for questions outside the knowledge base, does the bot stop. The brief gives no universal threshold, so each business must fix its acceptance question set from real data. Don't accept a nice-looking number from a partner without seeing the list of questions behind it.

We save both groups of questions so the next knowledge base update re-runs the exact same set, avoiding fixing one spot and breaking another.

Every knowledge base change must pass 4 checks, one per fault in the table, and at least 2 re-runs of the previous question set.

How MONA runs RAG on its website and call center

Visitors who open the mona.media chat window or call the call center 1900 636 648 all need answers grounded in information MONA has approved. The RAG architecture takes the question, finds chunks in the knowledge base, generates an answer and keeps the sources in the log. A sub-knowledge base of 10 files split into 70 chunks is the part we've opened up in this brief. Running for real.

A person monitoring the RAG bot across several screens
The knowledge base is only as clean as the bot's answers are right; people still monitor it daily.

AI handles the finding and the wording. A senior dev reviews code through 2 gates before it reaches the server; the content owner decides which documents go into the knowledge base and when old versions expire. Clearly separated roles keep the bot from becoming the place where policy gets issued.

Each question goes through 5 processing passes, while code and sources keep 2 review rounds with separate roles before a new version goes live.

This architecture also connects to the custom AI agent developmentservice. RAG handles remembering the right documents; an agent handles calling tools within its granted limits. If you need a bot that only answers, stop at RAG; if you need it to update orders or create requests, add permission gates, confirmation and logs.

3 problems where you shouldn't use RAG

RAG is not the answer for all business data. For the 3 groups below, the team runs 3 source cross-checks and keeps 2 reviews by the responsible person, because an answer drifting off old data can send a real decision the wrong way. Know when to stop.

  1. Data that changes every second: stock levels, balances and order status must be read from the source system's API at the moment of asking; RAG only keeps guidance on how to interpret the data fields.
  2. Calculation problems: taxes, interest, norms and formulas must run in tested code; RAG finds the formula or policy and doesn't act as a calculator.
  3. Legal decisions: the bot may cite sources and summarize, while a person with authority keeps the final decision and the approval trail.

A real flow can combine the two: RAG finds the exchange policy, and code checks the purchase date and order status from live data. We advise teams working on enterprise AI transformation to draw this boundary before buying more models or enlarging the document store.

RAG is only the technical part; the whole project still has to run on all 4 pillars

RAG is a technical architecture inside a product; the 4 pillars are how you manage the whole project. SDD records the 5 steps and the acceptance cases, AI-DLC lets AI assist from analysis through operations, Kanban keeps each change flowing continuously, Agentic SDLC keeps small MVPs moving fast within boundaries. Architecture needs process.

MONA's AI-Native SDLC whitepaper
RAG is one technical piece in the 4-pillar model, covered in full in the 14-page whitepaper.

Over AI-Native software development model, while people still set the problems, keep control and take responsibility. The bot searching 70 chunks is the hands and feet; people approve the sources, the permissions and which questions go to a specialist. If your team is stuck because knowledge base changes wait for a 2-week cycle to finish, take a look at Kanban for continuous flow.

On August 19, 2026, we published a 14-page whitepaper on the 4 pillars after one afternoon of work using exactly this model. AI built the repetitive parts, and a person caught 3 layout errors. The same principle keeps a RAG project fast while someone still answers for every response.

Frequently asked questions about enterprise RAG

Does RAG stop chatbots from making things up?

RAG cuts down on guessing by forcing the bot to look up sources first. After more than 14,000 projects, we still keep 2 review rounds for sources and code, because a RAG label alone isn't enough to hand responsibility to a machine.

How many documents does enterprise RAG need?

There is no universal file count. The sub-knowledge base MONA uses has 10 files split into 70 chunks, but the number depends on what the documents mean. Pick one group of approved policies and a set of real questions first, then measure how well it finds the right answer.

How is RAG different from retraining a chatbot's model?

RAG keeps knowledge in a document store that you replace separately, while the model that generates answers doesn't need to be retrained each time a policy changes. When a new price list takes effect, the team swaps the source and re-indexes the affected part.

Who is responsible for updating the RAG knowledge base?

The business owner of the topic approves the content; the engineering team handles chunks, metadata and search. At minimum these 2 roles must be clear. Developers don't issue policy on their own, and content owners don't grant system access on their own.

Start with 1 small, sourced knowledge base and 5 visible steps

Enterprise RAG deployment should start from one approved set of documents, not the whole storage drive. Run the flow 5 times, repeat 3 times with questions outside the knowledge base, and keep enough source traces for every chunk. A bot that knows to stop when it lacks grounds is worth more than a bot that answers every question. Small knowledge base, clear sources.

If you want to build AI agent suite or a RAG chatbot from internal documents, call 1900 636 648. We'll start with the sources, how to split chunks and the acceptance question set; exactly 5 steps first, and only then talk about the interface or the number of models.

Don't dump your whole document drive into a bot and wait for it to understand on its own

Send MONA 10 representative files. We'll review old versions, sources and chunk boundaries and build the 5-step flow so you can see where the bot gets its answers.

See how to deploy enterprise RAG

MONA has a podcast: listen instead of readingEpisodes on AI, automation & SEO for Vietnamese businesses
Nghe ngay
About the author

CEO & Founder · The MONA

Founder of The MONA, who built a services company of 60+ staff with 14,000+ projects delivered. Khánh Hùng shares how he thinks about building systems that run themselves, automating a business, and the real lessons from delivering projects at MONA.

Views 430
Rate this article 4,6/5 · 10 ratings

Professional website
design services

Own a website with a beautiful, 100% exclusive design and a lifetime warranty, with the ability
to expand features flexibly as your business grows, starting today!

Contact Mona

    MONA có riêng một Người "Bạn Thân" cho bạn - Người Account sẽ đồng hành, hỗ trợ, hướng dẫn, đặt đồ ăn cho bạn mãi mãi, từ đây về sau!
    MONA will never sell your information or send you spam
    The MONA team advising on an online education management system
    Hỏi đáp giáo dục 4.0
    Tạo cuộc hẹn miễn phí với MONA để giải đáp và tư vấn mọi thắc mắc về giải pháp số hoá ngành giáo dục
    Thời lượng cuộc hẹn
    45 Phút
    Ngày và giờ
    Thứ 2, ngày 25 tháng 12, 2023
    [9:30 - 10:15]

      Chọn ngày và giờ
      Khung giờ
      Back
      Hãy cho MONA biết bạn là ai
      0:00