Load the FAQ into Numbered Lines

loading and numbering the docs

Part of: FAQ Support Bot

A support bot that "knows your product" knows nothing on its own. The model has never seen your FAQ. Every answer it gives has to come from text you hand it, in the same call, every time. This lesson builds the first piece: turning a plain FAQ file into something the model can point back to. What we're building By lesson 8 you'll have a bot that answers strictly from your own docs and says "I don't know" when the docs don't cover it. The whole thing rests on one move: instead of dumping the FAQ as one blob of text, you number every line before it goes anywhere near the model. Give line 7 a number and you can cite it. Leave it buried in a wall of text and you can't. Numbering the source Each entry is now a (line number, text) pair. Nothing fancy, just an index. Later lessons feed these numbered lines into the prompt and ask the model to name the line it used, and that only works because you numbered them first. Why numbering instead of raw text Hand the model a raw FAQ and ask it to cite its source, and it will invent something plausible: a page number, a heading, whatever sounds right. You can't check any of it. A line number is a fact you control instead of a story the model makes

Challenge: Number the Exhibit List