RAG knowledge and character memory
Build a document-grounded chatbot or talking avatar with your product information, company policies and selected knowledge. Configure memory separately for returning conversations.
Out of the box, a language model answers from what it learned during training. That's fine for chit-chat, but a kiosk or assistant that represents your business needs to speak from your facts — this year's pricing, your return policy, the room number for Tuesday's workshop. IAMX gives your character two complementary abilities: a knowledge base so it answers from documents you provide, and long-term memory so it recognizes returning visitors and picks up where the last conversation left off.
Knowledge base
Upload your documents. The character retrieves the relevant passages and grounds its reply in them instead of guessing.
Long-term memory
Completed exchanges are condensed into a summary per visitor. A returning visitor gets a reply that remembers what they asked last time.
Face recognition
On kiosks, the character can recognize returning people by face and greet them by name — no login, no QR code.
Knowledge base (RAG)
The knowledge base is retrieval-augmented generation done for you. You upload files; IAMX indexes them; and on every question the character looks through the files enabled for it, pulls the most relevant passages, and hands them to the language model as reference material before it writes a word. The answer is phrased naturally by the model but sourced from you.
Ask something covered by your documents — "What's the cancellation window on the premium plan?" — and you get your answer, in your character's voice. Ask something your documents don't cover, and the character falls back to normal conversation; tell it in its persona or guardrails if it should instead say that it doesn't have that information.
What you can upload
Files are managed in IAMX Studio under Knowledge › Knowledge Base and then switched on per character. Up to 50 MB per file. Supported formats:
| Type | Examples | Good for |
|---|---|---|
| Brochures, manuals, contracts, menus, spec sheets | Long-form reference material and official documents (the PDF needs a text layer) | |
| Word (DOCX) | Policies, procedures, handbooks | Documents you already maintain in Word; the paragraph text is read |
| TXT / Markdown | FAQs, policies, notes, transcripts | Plain, fast-changing text you edit often |
| CSV | Price lists, product catalogs, schedules, directories | Rows of facts the character can find by asking about them |
| Images | JPG, PNG, WebP — screenshots, posters, photographed signage | Content that only exists as a picture; the text in it is read and indexed for you |
How grounding works
You don't wire any of this together — it happens on every turn. At a high level:
- Ingest — When you upload a file, IAMX extracts its text, breaks it into short overlapping passages and indexes them so they can be searched by meaning, not just by exact keywords. This happens once per upload.
- Retrieve — When the visitor asks something, IAMX searches the files enabled for that character and keeps the closest few passages that pass a minimum relevance threshold.
- Inject — Those passages are added to the character's instructions as reference material for this reply.
- Answer — The language model composes a natural reply grounded in that material, in your character's tone, and speaks it with lip sync like any other line.
Visitor: "Do you ship to Germany, and how long does it take?"
│
▼
┌───────────────┐ search the enabled files by meaning
│ Retrieve │────────────────────────────────────► shipping_policy.pdf (matched passages)
└───────────────┘ rates_2026.csv (matched rows)
│
▼ relevant passages added as reference material
┌───────────────┐
│ Language │ "Yes — we ship to Germany. Standard delivery
│ model │ is 3–5 business days at €6.90, free over €80."
└───────────────┘
│
▼
Spoken by the character, grounded in YOUR documents
There are no retrieval settings to tune: the number of passages and the relevance threshold are fixed. What you control is which files each character may search, and how those files are written — see Knowledge Base for writing documents that retrieve well. Each character's Knowledge Base tab has a Search Test that shows exactly which passages a question would find, with a similarity score.
Per-character knowledge
Your files live once in the workspace library, but access is decided per character. A lobby concierge and a technical-support agent can draw from the same library or from completely different subsets — you switch on the files each character may use on its Knowledge Base tab.
Common patterns:
- Shared core, private extras — every character sees the company FAQ, but only the HR character sees the employee handbook.
- Per-location — one character per site, each switched to its own store's hours and stock sheet.
- Seasonal — enable the holiday-hours document in December, disable it in January, without deleting anything.
Long-term memory
A stateless character forgets you the moment you walk away. With Long-term Memory enabled on a character's Memory tab, IAMX gives it continuity across visits. Each completed exchange is added to that visitor's record; a background job then condenses the record into a short summary and a few facts — the visitor's name, preferences, decisions and plans. When the same person comes back, the summary, the facts and the most recent exchanges are given to the character as context.
Day 1 ──► "Hi, do you have the Pro plan monthly or only yearly?"
… conversation …
⤷ condensed: "Asked about Pro plan billing options;
interested in monthly; didn't purchase."
Day 3 ──► The same visitor, recognized again:
"Welcome back! Last time you asked about Pro pricing —
we do have a monthly option now if you'd like the details."
What memory does
- Condenses instead of hoarding — exchanges are distilled into a compact summary and facts, so recall stays fast and relevant over time.
- Recognizes returning visitors — when the client identifies the same person again, their history is available from the first reply. Recognized visitors can be remembered across visits; unidentified visitors get separate session records.
- Carries context forward — unresolved questions, stated preferences, and where you left off travel with the visitor into the next conversation.
- Stays reviewable — the Memory tab's Current Records list shows each visitor's summary, recent exchanges and facts, and Insights › Sessions holds the full transcripts.
Tuning recall
Three settings on the Memory tab decide how memory behaves. Enabled switches it on; off, every session starts from scratch. Retention Period (days) decides how far back the character remembers — records older than that are not recalled, so a short period keeps a busy kiosk fresh for walk-up strangers while a long one suits repeat customers. Share across characters lets the other characters in your workspace recognize the same person.
Face recognition (plan feature)
On staffed and unstaffed kiosks, memory is most useful when the character can recognize a returning person on sight. Face recognition is set up on the character's FaceID tab (in the Behavior group): the camera recognizes the person, and optionally the live face is matched against the TC ID chip over NFC.
Person steps in front of the kiosk
│
▼
recognized as a returning visitor ──► their name + remembered history
│
▼
"Hello Deniz! Welcome back, great to see you."
How it behaves
- Greet when a person appears — welcomes new visitors automatically and greets recognized visitors by name.
- Greeting scripts — the kiosk speaks these lines word for word (they don't go to the AI), with the person's name filled in: Recognized person (face), Unrecognized person (face), Verified returning person and the NFC verification outcomes.
- Register by name (ID not required) — on, an unrecognized person is asked for their name and registered by voice, so they are recognized next time. Off, people are identified only through their ID.
- Matching & timing — Match threshold (0–1) sets how strict a face match is, and Exit delay (s) how quickly the conversation closes after the person leaves the camera.
Putting it together
A well-configured info kiosk uses all three at once: face recognition identifies the returning visitor, long-term memory reminds the character what that visitor cared about, and the knowledge base supplies the correct current answer to whatever they ask next. The result feels less like a chatbot and more like a colleague who remembers you and actually knows the material.
Set up knowledge
Upload your PDFs, Word files, text, CSV and images, then switch on the files each character can use. See Knowledge Base.
Enable memory
Turn on long-term memory, set the retention period, and decide whether characters share it. See Mind & knowledge.
Wire it in
Hook greetings and recognition events into your scene with the Blueprint API.
Ready to try it live? Create a character and upload your first document in IAMX Studio, browse the Unreal plugin source on GitHub, grab a build from releases, or ask through Support.