Custom Copilots & Knowledge Assistants

RAG Cost Breakdown: What It Actually Costs to Build and Run an Internal Knowledge Assistant in Malaysia

· By AIHQ Team

Why a RAG budget looks small on a slide and large on an invoice

Most Malaysian department heads approving an internal knowledge assistant are shown a monthly software figure of a few thousand ringgit and a promise that the tool "already answers questions from your documents." Eight months later the real number is closer to RM180,000 to RM450,000 spent, half of it on cleaning documents nobody mentioned in the business case.

That gap is not dishonesty. RAG — retrieval augmented generation — is a simple idea (find the right passages, then generate an answer) built on a genuinely expensive pipeline. This breakdown separates the one-off build from the recurring run so you can put a defensible number in front of your board.

Figures below are MYR ranges for Malaysian delivery, not quotations. Your own range will move with document volume, permissions complexity and how much of the work you keep in-house.

The one-off build: seven line items

1. Data ingestion and cleaning — the largest hidden cost

RM40,000–RM140,000. In most Malaysian organisations this is where the project actually dies. SOPs exist as PDFs of scanned forms, circulars live in personal folders, and the same HR policy exists in four versions.

Cost drivers: number of source systems, scan quality, whether documents need OCR, and whether any human must attest that each document is current. A 200-document first system is a different animal from a 20,000-document intranet.

2. Chunking and indexing

RM10,000–RM35,000. Smaller, but decisions here determine retrieval quality. Chunk size, overlap, metadata tagging (department, version, effective date) and handling of tables all need engineering judgment plus testing.

3. Vector store and platform setup

RM8,000–RM40,000 for implementation. Vector stores themselves are cheap; getting them into your tenancy, logging, backups and access model is not.

4. Retrieval tuning

RM15,000–RM50,000. Hybrid search, re-ranking and query rewriting are what separate an assistant that gives confident nonsense from one that finds the right paragraph. Budget two or three tuning cycles, not one.

5. Evaluation

RM12,000–RM40,000. A worked test set of 100–300 real employee questions with expected answers, scored blind. This is your only defence in a board conversation about whether the thing works.

6. Interface and integration

RM15,000–RM70,000. Standalone web chat is the cheap path. Inside Microsoft Teams, SharePoint or your service desk, with SSO, is the expensive one — and usually the only one employees will actually use.

7. Governance and legal review

RM15,000–RM45,000. Data protection impact assessment, content ownership rules, human escalation paths and a launch review. Under Malaysia's PDPA, the 2024 amendment introducing breach notification and a data protection officer appointment obligation means access control and audit logging are not optional extras. Permission-aware retrieval questions are set out in this guide to internal chatbot governance, which is worth costing into the build rather than discovering after launch.

Typical first-system build total: RM115,000–RM420,000.

The recurring run: five lines that never go away

Line item Monthly MYR What drives it
Hosting and inference 1,500–12,000 Query volume, model choice, whether you use an enterprise LLM agreement
Embedding refresh 500–5,000 How often documents change; monthly vs. live sync
Content ownership (part-time) 3,000–9,000 One named owner per document family, at 0.1–0.3 FTE
Human review and corrections 2,000–8,000 Sample checking of answers, wrong-answer triage
Enhancements and monitoring 4,000–15,000 Retrieval quality drift, new sources, quarterly evaluation

Annualised: RM130,000–RM590,000 per year after launch. For reference on the labour side of comparable workflow work, the hour-and-cost model in this AI for finance teams breakdown shows how to price the time these systems displace.

What pushes cost up

Cost driver Low end High end
Documents 200 clean PDFs 20,000 mixed files, scanned, multilingual
Permissions Everyone sees everything Department, grade and case-level access
Freshness Quarterly refresh Near-live sync to source systems
Language English only English, Bahasa Malaysia, Mandarin mixed in one answer
Integration Standalone chat Teams, intranet, service desk, HR system
Assurance Spot checks Formal evaluation, audit trail, PDPA documentation

Two drivers dominate: permissions complexity and language mix. A trilingual corpus roughly doubles the retrieval tuning and evaluation lines.

Cheap version versus production version

Pilot (RM25k–RM60k) Production (RM115k–RM420k)
Scope 100–300 documents, one department Multiple departments, governed sources
Permissions None or single tier Permission-aware retrieval
Evaluation Ten informal questions 100–300 scored test questions
Owner Project side task Named content owners per domain
Governance Verbal approval PDPA review, audit log, escalation route
Honest verdict Proves the concept Runs the business

The pilot is not a cheaper production system — it is a test of whether the second number is worth spending. Treating the pilot as the finished product is one of the recurring failure patterns documented in these AI adoption mistakes in Malaysia.

Sequenced implementation steps

  1. Name the decision the assistant supports. "Reduce HR policy queries reaching the shared inbox by half" beats "build an AI knowledge base."
  2. Inventory documents honestly. Count files, versions, owners and scan quality before any vendor quote.
  3. Map permissions before architecture. Decide who must not see what; retrieval design follows.
  4. Scope a pilot with an exit test. One department, 100–300 documents, pass/fail thresholds agreed in advance.
  5. Build the evaluation set from real questions your team already asks.
  6. Run the governance review with legal, risk and IT in the same room.
  7. Approve production on evidence, using the pilot's scored results rather than enthusiasm.

Starter checklist for the board paper

  • Document count, version count and owner per document family
  • Named business metric and baseline measured before launch
  • One-off build range and annual run range, both in MYR
  • Permission model approved by legal
  • PDPA review completed and logged
  • Evaluation set size and pass threshold
  • Escalation route when the assistant is unsure
  • Who owns content after the project team leaves

Where leadership decisions change the number

Three choices belong to the C-suite, not the engineering team. First, scope: every department added to phase one multiplies the ingestion and governance lines. Second, integration: the Teams upgrade is worth it if adoption otherwise stalls. Third, ownership: an assistant with no content owner decays within two quarters.

For organisations planning several of these systems, the structural choice of AI CoE operating model determines whether you pay for the pipeline once or five times.

AIHQ has trained and engaged over 9,000 professionals and worked across corporate, public sector and regulated environments; our custom AI solutions work is scoped the same way — build lines, run lines and named owners. Programmes can be structured to be HRDC claimable, subject to client eligibility, grant approval and HRD Corp submission requirements.

FAQ

Is RM50,000 enough to build an internal knowledge assistant in Malaysia?

It is enough for a scoped pilot: one department, 100–300 clean documents, no permission layers and informal testing. It is not enough for a governed production system, which typically lands between RM115,000 and RM420,000 in one-off build cost.

What is the single biggest RAG cost driver?

Data ingestion and cleaning. Document quality, version control and scan readability usually account for 35–40% of the one-off build, and they are the line most often omitted from vendor quotes.

How does PDPA affect RAG costs in Malaysia?

The PDPA amendment in force from 2024 introduced breach notification and data protection officer obligations. For a knowledge assistant this means access control, audit logging and documented review, which sit in the governance line at roughly RM15,000–RM45,000.

How long before the run costs settle down?

Expect elevated human review for the first two quarters while the evaluation set expands. Budgets typically stabilise in quarter three, once content owners are named and common wrong answers have been corrected at source.

Can we use an off-the-shelf enterprise chatbot instead?

Sometimes. If your documents are clean, permissions are simple and the tool sits inside your existing productivity suite, an off-the-shelf option can be cheaper. Where permissions are layered or documents are unstructured, a custom build usually costs less than repeated workarounds.

← Back to all articles