How to choose between searching and reading a knowledge base
Publicus gives an agent two ways to use a knowledge base, and picking the wrong one is the most common reason a knowledge base gives partial answers.
- Search knowledge base finds the handful of chunks closest in meaning to a question.
- Read knowledge base hands over the whole knowledge base, in document order, without searching.
Most people reach for search because it is the one they have heard of. For a small knowledge base that is usually the wrong choice.
The short version
Section titled “The short version”| Your knowledge base | The question | Use |
|---|---|---|
| Small enough to fit a prompt | Anything | Read |
| Large | Narrow — “what is the return window for shoes?” | Search |
| Large | Broad — “summarise everything we promise about delivery” | Search, and expect gaps |
The knowledge base’s page tells you which case you are in. Open it in Knowledge bases and look at its Size: it reads Small enough to read whole, in green, when it is.




Why searching a small knowledge base gives partial answers
Section titled “Why searching a small knowledge base gives partial answers”A search returns the top few chunks — five, by default. That works when the answer sits in one place and the question names it.
It works badly when:
- The answer is spread out. “Summarise what we promise about delivery times” is answered by six documents, and five chunks cannot contain six documents.
- The question is broad. “What are the main themes in our support tickets?” has no nearest chunk. Every chunk is equally relevant, so the five that come back are arbitrary.
- The question is a comparison. “How does our refund policy differ from our exchange policy?” needs both policies in front of the model, and a search ranks them against the question rather than fetching both.
In all three the agent answers confidently from whatever five chunks arrived. It has no way to know it was handed a fraction, so nothing in the answer signals that it was.
Raising topK is not the fix. It buys a few more chunks and does nothing about the shape of the problem — and once you are asking for twenty chunks you are paying for a search in order to approximate reading the whole thing.
Reading the whole knowledge base
Section titled “Reading the whole knowledge base”Add a Read Knowledge Base node and point it at the knowledge base. That is the whole setup — there is nothing to tune.
Two things worth knowing:
- It costs nothing. A search embeds your question, which is a paid API call on every single search. Reading embeds nothing at all.
- It has a size limit, in tokens, that you can raise. Past the limit it either fails with a clear message or returns as much as fits, depending on the Overflow setting.
Which overflow setting to pick
Section titled “Which overflow setting to pick”Inside a flow, leave it on “Fail with an explanation”. An oversized knowledge base is a configuration problem, and you want to know rather than silently receive a fraction of it.
When an agent calls it as a tool, choose “Return what fits and say so”. This is not a style preference. An error thrown inside a tool call is not a message the agent reads — it fails the whole agent turn after retrying. With “return what fits”, the agent instead sees that the result was truncated, and can fall back to searching. That is the behaviour you want.
Reading one document instead
Section titled “Reading one document instead”Set a source key to read a single document rather than the whole knowledge base. It matches the source key your ingestion flow set — you can see the list on the knowledge base’s Sources tab.


This is also how you let an agent choose. Put this in the source key field:
{$fromAI:source_key:The document to read, or omit to read all:string}The agent then gets it as a real parameter and picks per call.
When your knowledge base outgrows reading
Section titled “When your knowledge base outgrows reading”Knowledge bases grow. When the size badge goes grey, you have three options, in the order worth trying:
- Read one source at a time. If your questions are usually about one document, a source key keeps you in the reading world.
- Raise the token cap on the node, if the model you are using has the context for it. The cap is a budget, not a hard limit — though the platform does keep a separate ceiling to protect itself, which you cannot raise from the node.
- Switch to search, and set a minimum similarity on the knowledge base so that a question it cannot answer returns nothing instead of five irrelevant chunks. Use the knowledge base’s Calibration page to choose that number from your own evaluation questions rather than guessing it.


A note on the size estimate
Section titled “A note on the size estimate”The token count is an estimate — characters divided by four. It is deliberately rough and it under-counts Dutch and German, which use longer compound words than the ratio assumes. Treat a knowledge base near the line as if it were slightly over it.
Related
Section titled “Related”- Knowledge bases: creating knowledge bases and ingesting documents
- Data overview: how a knowledge base compares with the other stores
- Build an agent: wiring either node to an agent as a tool