Knowledge base for AI agents
An AI agent knowledge base is a set of documents your agent searches by meaning before it answers, so it quotes your policy instead of guessing. Your agent builds one from Claude, ChatGPT or Codex: add a URL or a file, wait until it reads ready, and search it, with no vector database of your own to run.
What it touches: the documents you add to a collection, split into chunks and embedded inside your workspace. Search only reads them, and a URL is fetched only when you add or re-index it.
updated Nov 3, 2026
Copy the setup prompt.
Your agent does the rest.
Install superagnt for me. It's the superagnt plugin from the github.com/superagnt/plugins marketplace, plus the superagnt MCP server (on Claude it's a connector I add in my browser; elsewhere I sign in through my browser). The setup guide for each kind of agent is at https://www.superagnt.com/install» the knowledge tools are on every server, and every plan includes knowledge bases: plans differ only in how many collections and documents you keep and how much file storage they hold.
Knowledge base, memory, database or files: which does your agent need?
A knowledge base holds documents an agent must quote correctly. The other three stores hold different things, and an agent usually needs more than one:
| Store | Holds | The agent reaches it by |
|---|---|---|
| Knowledge base | Policies, procedures, product docs, pricing rules, transcripts | Searching by meaning before it answers |
| Memory | Preferences and stable facts it learns along the way | Recall at the start of each turn |
| Database | Rows: leads, orders, run results, anything you count or filter | SQL and typed reads |
| Files | Inputs and outputs: uploads, exports, reports | Listing and reading a file |
What can your agent do with knowledge bases?
agnt_knowledge_write with action create_collection makes the retrieval unit an agent is bound to, with chunk size, overlap and a refresh schedule.
Add a web page by URL or a workspace file. Indexing runs in the background, and list_documents shows pending, indexing, ready or error.
agnt_knowledge_read with action search returns the best-matching chunks with their source document, a similarity score and when the source was last read.
action ingest reads a document again when its source changed, or after an error.
A collection set to refresh daily or weekly re-reads its URL documents, so a page that changes upstream doesn't go stale.
An agent searches only the collections bound to it, which is how one workspace keeps support, sales and internal knowledge apart.
agnt_knowledge_writeaction: create_collection · add_document · ingestagnt_knowledge_readaction: list_collections · list_documents · search
per-operation names06older servers list these
agnt_knowledge_create_collectionagnt_knowledge_add_documentagnt_knowledge_ingestagnt_knowledge_searchagnt_knowledge_list_collectionsagnt_knowledge_list_documentsWhat does a real call return?
A run we recorded on superagnt, with the result trimmed to fit. Nothing on it is invented: the date, the wall time and the cost are the run's own.
asked Build a knowledge base from our credits docs, and tell me what happens when the trial credit runs out.
- → call 1
agnt_knowledge_write{ "action": "add_document", "collection_id": "8525bb1b-…", "kind": "url", "name": "Credits and 402s", "config": { "url": "https://www.superagnt.com/docs/troubleshooting/credits" } }← resulttrimmed"status": "indexing", "note": "Indexing started in the background. Poll list_documents until this document reports ready before searching it." - → call 2
agnt_knowledge_read{ "action": "list_documents", "collection_id": "8525bb1b-…" }← resulttrimmedpoll 1: "status": "pending", "indexing_in_progress": 1 poll 2: "status": "indexing", "indexing_in_progress": 1 poll 4: "status": "ready", "last_synced_at": "2026-11-03T17:15:34.15Z", "indexing_in_progress": 0 - → call 3
agnt_knowledge_read{ "action": "search", "collection_id": "8525bb1b-…", "query": "What happens when the trial data credit is spent?", "top_n": 2 }← resulttrimmed"similarity": 0.70, "document": { "name": "Credits and 402s", "kind": "url" }, "live": true, "content": "...trial_data_grant_spent On the trial: the one-time data credit is spent, so data calls are paused. Everything else keeps working until the trial ends. ..."
» The run created the collection first and polled list_documents four times. No data credits were charged for the indexing or the search.
What should I put in an agent's knowledge base, and what should stay out?
Put in what the agent must get right and can't read from a live tool: policies, procedures, product and pricing docs, contract terms, call transcripts and FAQs. Keep out what changes by the minute or lives in a system of record, such as order status or account balances: give the agent the tool or the database for those. Keep out secrets too: anything in a collection can surface in an answer.
How long until a new document is searchable?
Seconds for a page, a minute or so for a long document. add_document returns before indexing finishes, so poll list_documents until the document reads ready before you trust a search: a search two seconds after adding a long file returned only the part already indexed.
| Document | Chunk size | Added to ready |
|---|---|---|
| One docs page by URL (Credits and 402s) | 512 characters | 5.5 and 6.1 seconds, two runs |
| One docs page by URL (Errors) | 512 characters | 5.2 seconds |
| 12 docs pages in one 102 KB markdown file | 512 characters (239 chunks) | 81 seconds |
| The same file | 1,024 characters (114 chunks) | 37 seconds |
sample · Our own docs, indexed on Nov 3, 2026; times from the document's created and last-synced timestamps
What chunk size should I use?
Chunk size here counts characters, not tokens: the default 512 with a 64-character overlap is about 100 words, a paragraph of prose. Raise it to 1,024 or more for reference tables, code and dense technical pages, where a small chunk separates a row from the header that gives it meaning. A bigger chunk also indexes faster: the same 102 KB file made half as many chunks and was ready in 37 seconds instead of 81.
How do I know it returns the right answer before customers see it?
Test it the way you would test an employee. Write 20 questions you know the answers to, include exact strings such as error codes, plan names and SKUs, run each through agnt_knowledge_read with action search, and check that the chunk holding the answer is in the top 3. Search matches by meaning only, with no keyword or reranking step, so exact identifiers are where it slips first. Keep the set and run it again after every change to the documents or the chunk size.
How do I stop it going stale, and who updates it?
A URL document is a live reference: re-index it with action ingest, or set the collection to refresh daily or weekly and it re-reads the page on that cadence. A file document is a snapshot: upload the new version and add it, then remove the old one. Give one person each collection to own, and a schedule can ask an agent to re-index and re-run your test questions every week.
What happens when two versions of a document disagree?
Search returns both if both match: nothing prefers the newer one for you. Each match carries its document, whether it is a live URL, and when it was last read, so an agent can be told to prefer the newest source. The fix that lasts is one source of truth per topic: remove the old version when you add the new one.
Do I need a separate vector database?
Not for this: collections are stored and searched inside superagnt, with nothing to host or connect. If you want your own embeddings next to your rows, the workspace database runs Postgres with pgvector, and a nearest-neighbour query over 10,000 vectors came back in under a second in our test.
What do people use it for?
Answer from your docs, not from training data
Load product documentation into a collection. The support agent searches it before replying and cites the document each chunk came from.
Policy the agent has to follow
Put pricing rules, discount policy and contract terms in a collection, so an agent checks the current rule instead of repeating what it saw in an old thread.
What does it cost?
The tools carry no per-call price: every plan includes them, and plans differ only in how much they hold. Plans are Starter $49 a month ($20 of data credit included), Growth $149 a month ($90) and Scale $399 a month ($300), and the no-card trial gives $3 of data credit with Growth limits.
- Knowledge collections: Starter 3, Growth 15 and Scale 50.
- Knowledge documents: Starter 500, Growth 5,000 and Scale 25,000.
- Knowledge file storage: Starter 2 GB, Growth 20 GB and Scale 100 GB.
What do people ask before they wire it up?
01What should I put in an agent's knowledge base, and what should stay out?
Put in what the agent must get right and can't read from a live tool: policies, procedures, product and pricing docs, contract terms and transcripts. Keep out live data such as order status, which belongs in a tool or a database, and keep out secrets, since anything in a collection can surface in an answer.
02How do I know it returns the right answer before customers see it?
Write 20 questions you know the answers to, including exact strings like error codes and plan names, search each one and check the answer's chunk is in the top 3. Search matches by meaning only, so exact identifiers are the first thing to test. Re-run the set after every change.
03How do I stop it going stale, and who updates it?
Set a collection to refresh daily or weekly so its URL documents are re-read, or re-index one with action ingest when you know it changed. Files are snapshots: upload the new version and remove the old one. Give each collection one owner.
04What happens when two versions of a document disagree and the agent pulls the old one?
Search returns both if both match, and nothing prefers the newer one automatically. Each match shows when its source was last read, so the agent can be told to prefer the newest, but the fix that lasts is removing the old version when you add the new one.
05What chunk size should I use?
Chunk size counts characters here: the default 512 with 64 overlap is about 100 words and suits prose. Use 1,024 or more for tables, code and dense reference pages. Larger chunks also index faster: our 102 KB file was ready in 37 seconds at 1,024 against 81 at 512.
06Do I need a separate vector database?
No. Collections are stored and searched inside superagnt. If you want your own embeddings next to your rows, the workspace database runs Postgres with pgvector.