← Back to Workshop Hub MODULE 1 · RAG

Answers from Your Documents

RAG means look up your documents first, then answer. It is how Amazon Quick can quote your own policies instead of guessing.

01 · The problem

The AI has never read your handbook

It learned from public text. Ask about your own policy and it can only guess. Switch between the two and compare.

Your documents

Staff HandbookLeave, pay, conduct
Section 4.3: Senior pharmacists receive 21 days after 3 years.
Procurement PolicyBuying and approvals
Latest circularNew rules this month

The conversation

You ask How many days of annual leave does a senior pharmacist get? AI answers
Illustrative example.
Give the AI your document first, and it can answer from it and show where.
Tell me more

What it has not read. Your staff handbook, procurement policy, last week's circular, today's vendor proposal and this morning's meeting notes were never part of its training.

Two bad options without lookup. It says "I don't know", which is useless. Or it writes a plausible answer based on what other organisations usually do, which is a hallucination: confident and made up.

What lookup adds. Answers can point to a document and section. New files can be used as soon as you add them, with no retraining of the model.

02 · The journey

Five steps from question to answer

Amazon Quick does this for you. Watch your question find the right pages, then click any stop.

Your library

citedHandbook 4.3
usedHandbook 4.7
Handbook 6.1
Procurement
Circular
Vendor contract
Stop 1 · Your question

The AI only sees the few pieces that were picked, not your whole library.
What does "search by meaning" involve?

In general RAG systems, your question and every piece of every document are turned into lists of numbers that capture meaning. Pieces whose numbers sit closest to the question's numbers are the best matches. That is why a search for "annual leave" can find text that says "vacation days".

Amazon Quick manages all of this for you. You do not choose any of these settings, and this page does not describe how Quick works inside.

03 · Cutting documents

Documents are cut into pieces first

Search works on small pieces, called chunks. Change the cut and see which piece wins, and whether the answer survives.

Piece size
Question How many leave days does a senior pharmacist get after 3 years?

The AI receives the best-matching piece

Bars = sentences in each piece · amber dot = the two sentences that hold the answer · matching is simplified for illustration.
Too small loses the full answer. Too big adds noise. Overlap protects what sits on a cut.
Tell me more

Why cut at all? A 200-page handbook as one block would blur every detail. Smaller pieces keep the detail so the right one can be found.

Cutting by structure. Splitting by section heading or paragraph keeps ideas together better than cutting every fixed number of characters, which can slice a word in half.

In Amazon Quick. This is the general idea behind RAG. Quick manages it for you, so you do not set a piece size. What you control is the quality of the documents: clear headings and short sections help.

04 · Putting it together

You type one line. The AI gets a stack.

Rules, the picked pieces and your question are stacked into one prompt. Click a layer to see what it does.

Click a layer

Each layer has a different job. Together they let the AI answer from your pages.

You never need to know which section matters. The lookup finds it and adds it for you.
Why citations matter in healthcare admin

The rules layer asks for a source, and the picked pieces carry their section labels. So the answer can say "per Staff Handbook section 4.3". That makes it checkable, which matters for HR, compliance and procurement work.

Everything shares one limited space, called the context window. More pieces mean less room for others, so a focused set of pieces beats a large pile.

05 · In Amazon Quick

Three places shape your agent

Click each source to see what it controls. Then try the Web Search switch below.

Your chat agent answers and cites the section

Put the right files in the Space, switch Web Search off, and check the cited section.
When lookup falls short
SituationWhy it is hardWhat to do
Answer is spread outThe facts sit in many places, and only a few pieces are pickedAsk narrower questions, one at a time
Totals across many filesAdding up needs every figure, not a few piecesUse a spreadsheet or finance system
Old and new versionsThe agent may quote the older policyKeep only the current version in the Space
Not in your filesThere is nothing to look upThe agent should say "not covered", so ask it to

More sources. Quick can also connect to places where content already lives. Which ones are available depends on what your administrator has enabled. For data classification, retention and audit questions, ask your DNA / IT team.