Give your agent a brain upgrade: knowledge files and sources
Basic · 9 min
Goal: You will ground your agent in your real documents so it answers from your facts, not its imagination.
An agent without knowledge improvises; an agent with your documents works. This episode covers knowledge grounding honestly: what to upload, how to structure it, and the limits — uploaded knowledge reduces invention, it does not eliminate it.
Steps
- Collect the knowledge that decides answers: Gather the documents your job actually depends on: price lists, policies, product details, past examples of good output, your style guide. If a human doing this job would open it, the agent needs it. Ten relevant pages beat a hundred random ones.
- Clean before you upload: Remove outdated versions (two price lists = the agent picks one, possibly wrong), add a title and date to each document, and convert messy scans to clean text where you can. Knowledge quality is the ceiling on agent quality.
- Instruct the grounding behaviour: Add rules: 'Answer from the uploaded documents first. If the documents do not contain it, say [not in documents] instead of guessing. When you use a figure, name the document it came from.' Then test with a question whose answer is NOT in the documents — it must admit it.
- Build a research notebook for open questions: For knowledge that changes (competitors, prices, news), pair your agent with a source-grounded research tool: Gemini Notebook (NotebookLM) for your collected sources, Perplexity for cited web answers. The pattern: research with citations first, then let your agent work on verified material.
- Maintain knowledge like a garden: Monthly: replace changed documents, delete dead ones, re-run your three Episode 2 tests. Stale knowledge is worse than none — it produces confident, outdated answers.
Tricks and tips
- Name files like a librarian: 'Price-List-2026-11.pdf' — the agent cites what it can identify.
- Keep one 'golden examples' file: 3-5 perfect past outputs. Examples teach format better than any rule.
- Never upload documents containing other people's private data without their consent — the agent will happily quote them back to anyone who asks.
Practice task
Upload your cleaned knowledge set, add the grounding rules, and pass the admission test: three questions not in the documents must all return honest 'not in documents' answers.
Pro level
- Pros split knowledge into facts (documents) and judgement (instructions/examples) and update them on different schedules.
- Chunk big documents by topic into separate files — retrieval works better on focused files than on one 300-page dump.
Free and cheap ways to do this
- Gemini Notebook (NotebookLM) is free for source-grounded notebooks with citations — an ideal knowledge companion.
- Custom GPT/Gem knowledge uploads are included in their builders; Poe bots can be given knowledge on free tiers (check current limits).
- Cleaning documents costs only time — and it is the highest-value hour in this whole series.
Only legitimate free routes are listed here — official free tiers and trials, open-source tools, and student discounts. Cracking, piracy and payment workarounds are not recommended.