Retrieval-augmented generation, nearly always shortened to RAG, is the least glamorous and most useful idea in applied AI right now. It is also the one most often oversold: sold as a product you install, described as a stack of a dozen exotic components, then quietly abandoned three months later because nobody checked whether the answers were right.
This guide is for founders and operators in Hong Kong who have documents that matter and a model that does not know them. Price lists, service terms, HR policies, supplier contracts, maintenance manuals, years of email threads. We cover what RAG does, why you need it, how hard it gets, and where to start. The deep material on architecture, evaluation, and cost is in our white paper RAG in Production, publishing on 12 December 2026; this page is the introduction you read first.
What RAG actually is
The term comes from a 2020 paper by Patrick Lewis and colleagues at Facebook AI Research, UCL, and NYU, published at NeurIPS. The framing in that paper still holds: a language model has knowledge baked into its weights, and RAG gives it an external index to look things up in. A retriever finds passages; the generator writes an answer from them.
In practice a RAG system does four things:
- Ingest. Pull documents from wherever they live, parse them into clean text, and split them into passages.
- Index. Turn each passage into a vector and store it with metadata: source, section, language, effective date, and who may read it.
- Retrieve. When a question arrives, search the index and keep a shortlist of the most relevant passages.
- Generate. Put those passages and the question into the prompt, instruct the model to answer only from what it was given, and ask it to cite.
That is the whole idea. Everything else in the field is engineering around those four steps.
Why you need it
The model is not the problem. Frontier models write well and handle messy language. What they cannot do is know that your Causeway Bay branch closes at 6pm on Saturdays, or that clause 12.3 of a supplier agreement overrides the schedule in annex B.
Four reasons teams reach for retrieval:
The knowledge was never in the weights. Anything internal, recent, or specific was not in the training data. Prompting harder cannot supply a missing fact.
Knowledge changes, and you need to prove it. Change a document, reindex, done in minutes, with a trail. Retraining is not that.
You need attribution. An answer someone will act on should point to the sentence it came from. That matters under the Personal Data (Privacy) Ordinance, where you are expected to know what personal data entered a system and who could see it. We are not lawyers, and interpretation belongs with counsel, but a design where every answer maps to a source document is easier to defend than one where it does not.
You need to control what each person sees. A sales rep should not retrieve HR salary bands. Retrieval lets you filter by identity before the model sees any text.
Why a bigger context window does not replace it
Every few months someone argues that long context makes RAG obsolete. It does not, for three practical reasons.
Cost: long context sends the entire corpus with every question. A 2026 case study on manufacturing documentation found long context reached 73.1 percent correctness against 65.4 percent for retrieval, at roughly 26 times the cost per answer.
Behaviour: Chroma’s Context Rot report tested 18 models and found accuracy degrades as input length grows, even when the task stays simple, and that related-but-irrelevant text makes it worse. A model reading 400,000 tokens is not reading them evenly.
Permissions: if your documents have per-document access rules, putting everything in the window for every user is not a design you can secure. You have to build the context per user from what that user may read, which is retrieval under another name.
RAG is not fine-tuning
Fine-tuning teaches a model a behaviour or a voice. It does not reliably teach facts and cannot keep them current. Teams that fine-tune on their product manual usually get a model that sounds like the manual and misstates the warranty. Use fine-tuning for tone and format, or a narrow classification task at volume. Use retrieval for knowledge.
How complicated does it get?
A naive version is a weekend project. A production version is a data pipeline with an evaluation harness attached, and the gap is not in the code. It is in the corpus.
In production you are dealing with scanned PDFs where columns come out in the wrong order, spreadsheets with merged cells, documents superseded three times, an index that must reflect an edit within minutes, a permission model that has to hold at query time, and questions from Hong Kong customers in English, traditional Chinese, and Cantonese phrasing that nobody anticipated.
That is why teams ask the right question next: how many layers should we build? There is a ladder, and it runs roughly like this:
- No retrieval, when one short stable document fits in context.
- Keyword search, when users search by SKU, clause number, or case reference.
- Hybrid retrieval, adding vector search so a question phrased differently still finds the passage. This is where most Hong Kong first features belong.
- Reranking, when the right document is being found but not surfacing near the top.
- Query rewriting, when questions arrive incomplete or as chat follow-ups.
- Agentic multi-hop, when an answer genuinely spans several systems.
- Graph overlays, when questions are about relationships and implications rather than passages.
The rule we use is start one rung lower than your instinct, ship, and let the failure log tell you what to add. Two features in the same company often belong on different rungs: a staff handbook bot needs hybrid retrieval, a contract review tool may need clause-level citations and a review gate. The full ladder, with evidence per rung, evaluation, and cost, is in the white paper publishing on 12 December 2026.
The Hong Kong specifics
Four local realities genuinely change the design, and none of them are marketing.
Bilingual and code-switched content: a typical document set mixes English headings, traditional Chinese body text, and sentences that switch mid-clause. A 2026 ACL benchmark found mixed-language queries degrade even strong multilingual retrievers by roughly 8 to 15 points, and that a bigger model does not close the gap. Use a genuinely multilingual embedding model and put bilingual questions in your test set.
Scanned and legacy formats: decades of paper forms mean OCR quality becomes an accuracy ceiling. Budget for it.
PDPO-shaped access control: purpose limitation, access control, and retention expectations push you toward filtering at retrieval, logging what was retrieved, and being able to remove a document’s influence on request. Design the deletion path on day one.
Vendor region and channel reality: which model you call decides where prompts and retrieved text are processed. A Hong Kong data region is an infrastructure fact rather than a legal conclusion, and it shapes procurement; our Qwen guide and DeepSeek guide cover the region detail. Most local enquiries also arrive through WhatsApp and phone, so the system has to accept those inputs, not just a web form.
Worth keeping in perspective: HKPC’s Q1 2026 SME survey found 48 percent of surveyed SMEs had used AI tools in daily operations, mostly chatbots and document tools, but only 32 percent of those users paid for anything. Adoption is running ahead of integration, which is the gap a retrieval layer closes.
How to start
- Pick one collection that people already ask about, and name an owner for it.
- Write 100 test questions from real enquiries before you build anything, each paired with the document that should answer it.
- Parse and chunk with headings attached, add metadata including who may read each document, and measure whether the right passage is being found.
- Add a reranker and a grounding prompt that requires citations and permits the answer “I could not find this in your documents.”
- Ship to a small internal group, read the failures weekly, and fix the largest class only.
Then stop. Resist the second collection until the first is boring, because boring means the pipeline, the evaluation, and the review loop all work.
Where a studio helps
Most RAG projects fail on corpus hygiene, chunking that ignores how documents are written, permissions bolted on late, and an evaluation set nobody built, so improvement cannot be told apart from novelty.
The Digiter Studio builds retrieval systems for Hong Kong teams where the documents are bilingual, messy, and business-critical. When the blocker is integration bandwidth rather than a fixed build, an FDE-style sprint is often the shortest route from scattered files to a system in daily use. Explore tailored AI services for the delivery shape.
RAG: questions Hong Kong teams ask
What is retrieval-augmented generation in simple terms?
Retrieval-augmented generation means looking things up before answering. When someone asks a question, the system searches your own documents, pulls the few passages most likely to contain the answer, and gives those passages to a language model along with the question. The model replies from what it was handed rather than from memory, so it can cite sources and stay current when you update the documents.
Why do we need RAG if models now accept a million tokens?
Cost and control. Sending a whole library with every question is expensive at volume, and models use long inputs unevenly: accuracy tends to fall as input grows, a pattern Chroma documented across 18 models. Long context also cannot enforce per-document permissions, so retrieval remains the practical way to show each user only what they may read.
Is RAG the same as fine-tuning?
No. Fine-tuning changes how a model behaves and writes, and it bakes knowledge into weights that go stale when a price or policy changes. RAG keeps knowledge outside the model in an index you can update in minutes, and it can show which document an answer came from. Most teams need retrieval first and never need fine-tuning at all.
Does RAG work with Chinese and mixed Cantonese-English documents?
It can, but it needs deliberate work. Word-based splitting does not suit Chinese, scanned traditional Chinese forms need OCR, and mixed-language questions are measurably harder. Use a multilingual embedding model, split on Chinese punctuation, and test bilingual and code-switched questions before launch rather than after.
When should a business not build RAG?
When the answer already sits in a system you can query directly, such as stock levels or invoice status, because a database call is cheaper and exact. Skip it too when the corpus is one short stable document that fits comfortably in context, or when nobody owns the documents and they contradict each other, since retrieval will faithfully surface the contradiction.
How do you know whether RAG is working?
Check retrieval and answer writing separately. For retrieval, confirm the right passage appears in the top results for real questions with known answers. For the answer, confirm each claim is supported by the passages supplied. One end-to-end score hides the fact that most disappointing answers begin with a passage that was never found or never ranked highly enough.
Ready to scope one workflow with embedded-style delivery? Contact us or explore tailored AI services. We will meet you where the work actually happens, start from the documents your team already trusts, and plan a realistic first production release for retrieval.