How to train AI on your website content
7 min read · updated August 10, 2026
"Training on your website" almost never means training a model. It means crawling your pages, splitting them into passages, indexing them by meaning, and retrieving the right ones at question time. Understanding that distinction tells you exactly what to fix when answers are wrong.
It isn't training, it's retrieval
When a product says it trains on your website, it almost always means retrieval-augmented generation: your pages are crawled, split into passages, converted into embeddings, and stored. When a visitor asks something, the closest passages are retrieved and handed to a language model with an instruction to answer only from them.
This matters practically. Nothing about the model changes, so updating your knowledge is a re-crawl, not a retraining run — and a wrong answer is usually a retrieval problem or a content problem, not a model problem.
What makes content retrievable
Retrieval works on meaning, so content answers well when it states things plainly and completely in one place. A page that says "we ship across the EU in 5–8 business days, free over €80" is retrievable. A page that spreads the same facts across a hero image, a tooltip and a PDF is not.
Length matters in both directions. A page with forty words has nothing to retrieve; a ten-thousand-word page gets split into passages that may each lack the context to stand alone. Pages of a few hundred to a couple of thousand words, each about one thing, work best.
Diagnosing a wrong answer
Work backwards through the chain. First: does the fact exist on the site as text? If not, that is the fix — write it. Second: was the right passage retrieved? If retrieval surfaced the wrong page, the content probably buries the answer or uses vocabulary customers don't. Third: was the passage retrieved but the answer still wrong? That is a prompt problem, and it usually means the system is not being firm enough about answering only from source.
Keep it current
Set a cadence that matches how often you change things. An ecommerce store during a sale needs re-crawling more often than a professional services firm. The failure mode is silent — nothing breaks, the answers just quietly describe an older version of your business.
Questions
- Is fine-tuning ever better?
- For style and format, sometimes. For facts, almost never — fine-tuning bakes information into weights that are expensive to update, and it does not give you a source link to cite.
- Can it read PDFs?
- Some systems can. RubyRep V1 reads web pages only. If important facts live only in a PDF, publishing them as a page helps search engines and customers too.
Related
tool
Website knowledge base generator
Reads your website and organises it into a knowledge base structure — topics, the pages that belong to each, and the topics customers ask about that your site doesn't cover. Exports as Markdown.
tool
Website support score
Scores a website on how well it could support customers — and how well an AI representative trained on it would perform. Five dimensions, a total out of 100, and the specific gaps behind the score.
term
What is RAG (retrieval-augmented generation)?
RAG is what separates a chatbot that knows your business from one that guesses. Documents are split into passages and indexed by meaning; each question retrieves the closest passages, and the model is instructed to answer only from them.
term
What is an embedding?
Embeddings are why an AI representative can answer "do you deliver to Berlin?" from a page that only says "we ship across the EU". Text is converted to vectors, and similar meaning lands close together.
term
What is a knowledge base?
Traditionally a knowledge base is a help centre humans read. For AI support it is the source material a representative answers from — which means an ordinary website, well written, can serve as one without a separate help centre.
industry
AI customer support for SaaS companies
SaaS support is dominated by questions your documentation already answers: what a plan includes, whether a feature exists, how an integration works. RubyRep reads your docs, pricing and changelog and answers those on the site, so trial users get unblocked in seconds instead of waiting on a ticket.
Want to skip to the working version?
RubyRep does everything in this guide from a single URL — reads your site, builds the knowledge, and gives you one line of code to install.
Train My RubyRep