AI Agent Creation › Give your agent a brain upgrade: knowledge files and sources

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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

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

Free and cheap ways to do this

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.

No ratings yet — be the first to rate