INDUSTRY:

SaaS

CLIENT:

ProtoPie

YEAR:

2026

EXPERIENCE:

Enablement

RAG Framework Tutor

Your AI assistant needs a lesson plan

Nov 24, 2026

Most AI knowledge assistants fail the same way. Not dramatically. Quietly.

Someone asks a question, gets a confident answer that's slightly wrong, and never asks again. Within a few weeks the assistant is a bookmark nobody opens.

I've built two retrieval-augmented generation (RAG) assistants: Bridge Buddy, an internal knowledge assistant for customer success managers at ProtoPie, a B2B SaaS company, and SPARK, which lets people explore my portfolio by asking questions. Both look things up in real material before they answer. And both taught me that the retrieval part is the easy bit.

The hard part is behaviour. What the assistant does once it has the right passages: what it refuses to guess, how it stays on topic, how it adapts to who's asking, and how you know it still works after you change something.

In other words, a good knowledge assistant isn't a search box with a chat window. It's a tutor. And a tutor needs a lesson plan.

What turns a RAG assistant into a tutor?

RAG stands for retrieval-augmented generation. Instead of answering from whatever it absorbed in training, the AI looks things up first. Ahead of time, your content is split into short passages and indexed so it can be searched. When someone asks a question, the system finds the most relevant passages and the AI answers from those alone. Think of it as an open-book exam rather than a closed-book one.

[embed: node/50d06dab-276b]

Plenty of tools do that. What makes one a tutor is how it behaves after it has the passages, and none of these behaviours comes free. You have to design each one.

It answers from your material, and admits the gaps. If a detail isn't in the content, a tutor says so. A confident guess is worse than "I don't know," because it teaches people not to trust the next answer either.

It stays on topic. When someone is exploring one subject and asks "What tools were used?", the follow-up should stay anchored to that subject, not drift to whatever passage happens to match best.

It adapts to the learner. The same facts land differently for different people, so the assistant needs to know who it's talking to. There are two ways to find out, and the right one depends on what people came to do.

Bridge Buddy's users needed specific examples, fast. So the experience opened with a short setup window asking for their skill, industry and goal, and answers were shaped around them. When the task is specific, a minute of setup pays for itself.

SPARK is different. Visitors come to explore, and a form at the door would turn some of them away. So I dropped the setup window and moved the lens into the link. I built target personas and gave each one its own URL: ?role=enablement tilts answers toward training programs and adoption, and ?role=lxd tilts them toward learning design. A hiring manager arrives with the right framing without being asked a thing.

The rule of thumb: ask for context when people arrive with a specific task, and carry it in quietly when they come to explore.

It suggests what to ask next, then steps back. A blank text box is intimidating. In SPARK, suggestion chips in the chat input get people started, and they change as the conversation moves on. But suggestions are scaffolding, and scaffolding should come down. If people only ever tap chips, they're following your script, not asking their own questions. So offer fewer suggestions as the conversation goes on, and make the later ones nudges rather than ready-made questions, such as "Ask about a project in your industry." The goal is a learner who stops needing the prompts.

It shows, not just tells. Names become links, images appear inline, and videos play in the conversation.

Retrieval gets the right page. Design decides whether people trust what you do with it.

What carries over, and what's specific to you?

Building the second assistant made one thing obvious: the machinery is almost identical for any body of knowledge. Store the content, split it into chunks, turn the chunks into something searchable, work out what the question is really asking, retrieve the best chunks, and have the AI answer from them.

That basic recipe has been refined a lot, and the refinements are worth knowing, if only so you can ask vendors about them. Hybrid search combines meaning-based search with exact keyword matching. Contextual retrieval adds a short note to each chunk, before indexing, saying where it sits in the larger document. Reranking uses a second model to re-order the top results before the AI sees them. Newer approaches go further, letting the AI decide when and what to search, or mapping how ideas connect across documents.

I've tested three of these on SPARK. Hybrid search shipped, because names and dollar figures kept slipping past meaning-based search. Contextual retrieval scored perfectly on my tests and still broke real answers, so it never shipped (more on that below). Reranking is on hold until something shows it's needed. Each technique fixes a specific failure. Add one when you can see that failure, not because it's new.

If you're evaluating vendors, here's the takeaway: the pipeline, refinements included, is close to a commodity. What isn't a commodity is the part that's yours:

  • Your content. One source of truth that people can update without touching code.

  • Your rules. What the assistant may say, what it must never invent, and how answers should look.

  • Your learners. Who asks, and what each group needs first.

  • Your proof. A set of evaluations, or evals: real questions with known right answers that you rerun after every change to check it still works. If you design training, you already know this idea. It's an assessment, written for the assistant instead of the learner.

That smaller part is where an assistant earns trust or loses it. It's also, not coincidentally, where learning designers have the most to contribute.

The move from Bridge Buddy to SPARK showed what does and doesn't transfer. The principles carried over intact: retrieve first and answer only from what was retrieved; build evaluation in from the start; decide what the assistant may say before it says it. What changed was everything around them. Colleagues asking work questions became visitors I'll never meet. Product documentation became a Notion database I can edit like a document. And a public assistant needed firmer boundaries, so some pages are used only for background questions and never appear in lists. In SPARK, two pages, "Dana's Expertise" and "Outside of Work," answer questions like "What's your background?" or "What do you do for fun?" But when someone asks to see every project, they stay out of the list. They're context, not portfolio pieces.

Where does a RAG tutor break?

Everywhere, at first. Here's the anatomy, and what each part taught me when it went wrong.

Part

Its job

The lesson

Content

One editable source of truth

Renaming a page should need no code change, as long as the title matches everywhere it's used, including your tests.

Build step

Splits pages into chunks and makes them searchable

Put the key facts (title, role, result) in every chunk. Once a page is split, a chunk without them can't answer a list question.

Router

Works out what's being asked: one topic, a list, a timeline, something personal

A keyword rule once hid a project from its own results because the trigger word was in its title. An AI step that checks against the real titles replaced it.

Search

Finds the best chunks

Combine meaning-based search with exact keyword search. Names and dollar figures are found reliably by keywords when meaning drifts.

Tutor prompt

Rules for voice, grounding and layout

Layout needs its own rule. Without one, a simple answer came back as a wall of bullets.

Chat page

Turns the answer into links, images and video

Order of operations matters. Images must be converted before the Markdown is processed, or they break.

Evaluation

Runs real questions and reports what broke

When I renamed four projects, it flagged every test still using an old title.

Notice how few of these lessons are about AI. Most are about content structure, naming and order of operations. If you have an instructional design background, you already have most of the instincts this work needs.

If structuring your content is where you want to start, two resources help. APQC's guidance on designing knowledge taxonomies and metadata covers the thinking: which categories and fields your content needs. Notion's intro to databases and its guide to database properties cover the doing. For a concrete starting point, here's how SPARK's content is set up. Each project is one row in a Notion database:

Field

What it holds

Why the assistant needs it

Title

The project's name

Lists, links and follow-ups all hang on it, and so do the tests

Client

Who the work was for

Answers questions like "What have you done for SaaS companies?"

Role

What I did on the project

Lets answers frame the work for each persona

Tech stack

The tools used

"What tools were used?" is answered from this field alone

Business impact

The headline result

Lets the assistant lead with results

Body

The full story, in rich text

Supplies the detail behind every answer

Notice that the fields mirror the questions people actually ask. That's the test for any category you add: if nobody will ask about it, it doesn't need a field.

How do you write rules for a tutor?

Think of the system prompt as the tutor's lesson plan. Mine is a short numbered list, and a handful of rules do most of the work:

  1. Answer only from the retrieved material. If something isn't there, say so. Never invent tools, dates or results.

  2. Use the official fields for facts. Questions about tools used are answered from a dedicated field alone, so the assistant can't guess something that merely sounds right.

  3. Stay on the current topic. Once a subject is established, follow-ups draw only from its pages.

  4. Lead with results. If there's a number, it comes first.

  5. Tell the page what to do. Small tags in the answer mark which project it's about and where links and images go.

  6. Frame for the reader. Each audience has an emphasis and a de-emphasis, so the same facts land for whoever is asking.

The part nobody warns you about: rules collide. "Say when details are missing" is right for a specific question. It's wrong for "list all your projects," where the assistant should always produce a list. I had to write that exception into the rule itself.

Whenever an assistant sounds oddly unhelpful, look for two rules pulling against each other. It's almost always that, and almost never the model.

How do you know it still works?

The same way you know a course works: you assess it.

You wouldn't ship training without checking that learners can pass its assessment. A tutor needs the same thing: a set of real questions with known right answers, run after every change. SPARK has 35, covering single-project lookups, lists, timelines, role framing and awkward phrasing. They run two ways:

  • Retrieval mode checks that the right content comes back first, without running the AI at all. It's fast and cheap.

  • Live mode sends each question through the whole pipeline and checks the real answer.

Each test ends in a plain status: pass, partial (found, but not first), fail, or config, meaning the test points at something that no longer exists, so fix the test, not the code. Results are timestamped so runs can be compared.

Now the uncomfortable part. One retrieval upgrade I tried scored 100% on the full suite, and it still broke real answers: long pages lost content and some responses came back malformed. I caught it only by reading the output. It never shipped.

The lesson: a perfect score tells you what your tests measure, not whether your answers are good. Mine check which content was found, not whether every sentence is right or well formatted. Because an AI writes the answers, a test can also pass on one run and fail on the next. Treat a green test suite as necessary, never sufficient. Then read the actual answers.

If that sounds familiar, it should. It's the completion-rate problem in L&D, wearing a different outfit.

The mistakes that taught me the most

None of these were exotic. That's the point.

Tidying results hid real content. When someone asked for a list of projects, I kept only the best-matching passage from each project, so the same project wouldn't appear five times. That worked until a page covered several products. Say a page describes onboarding for three products: the answer mentioned one, and the other two vanished. The fix was to mark those pages in the content as covering several products, so the system keeps a passage for each one.

The editor changed my text. To show images in answers, I put a short marker in each Notion page that included the image's web address. The chat page looks for those markers and swaps in the picture. But Notion automatically turns web addresses into clickable links, which adds extra characters around them. The markers no longer matched what the chat page was looking for, so images quietly stopped appearing. Rather than fight the editor, I made the matching ignore those extra characters.

Results leaked between questions. A shared list was being added to while answering, so one person's results could appear in the next person's answer. Building a fresh list for each question fixed it. It's a small bug with a big trust cost.

I rebuilt, and nothing changed. The server loads the knowledge base once, when it starts. After updating content, I had to rebuild and restart, or I was testing yesterday's version. That one cost me more than one confused afternoon.

Every one of these looked like an AI problem at first. None of them was.

Where should you start?

The pattern fits any body of knowledge people ask questions about: product documentation, onboarding, partner training, policies. Here's how I'd begin:

  1. Pick one small body of content, a few pages you know well enough to spot a wrong answer.

  2. Structure it before you build anything. One page per topic, with a few consistent fields such as title, audience and headline result.

  3. Write ten real questions first, with the page each one should find. These are your assessment.

  4. Build the simplest pipeline that works, and run your questions.

  5. Tune the rules one change at a time, and re-run after each.

  6. Add a lens for each audience once the basics hold up.

Notice that steps 1 to 3 are content and assessment design. Most of the quality is decided before any code runs.

FAQ

Do I need RAG, or can I just put the content in the prompt?

If your content is small and rarely changes, put it in the prompt. RAG earns its place when there's too much content to fit, or it changes often.

Why would a learning team build this, rather than IT?

Because the hardest parts are content structure, audience, rules and assessment. Those are learning design skills. The best results come from both working together.

How do I stop it making things up?

You can't eliminate it, but you can shrink it: answer only from retrieved content, use dedicated fields for key facts, require it to say when something is missing, and test with questions whose answers you know.

Final thoughts

A knowledge assistant is a learning experience whether you design it as one or not. People form a view of whether to trust it within their first few questions.

So treat it like one. Give it a lesson plan, know your learners, and assess it before you trust it. Then keep reading the answers, because no test suite reads them for you.

Explore further: SPARK is open source on GitHub, and you can try it at danas-digital-twin.onrender.com. If you're wondering what a tutor like this could do for your own product or policy knowledge, I work with teams directly: danacannamdesign.com.