Read Knowledge Base
Read Knowledge Base hands over a whole knowledge base, or one source from it, as documents in document order. Nothing is embedded, ranked, or paid for. For a knowledge base small enough to fit a prompt, this answers broad and cross-document questions better than any search; how to choose between searching and reading covers when. You find it on the node picker’s AI shelf.
Ingest: Read a File as Text → Split Text → Contextualize Chunks (optional) → Embed → Knowledge Base InsertRead back: Knowledge Base Query (search) or Read Knowledge Base (read whole)The node has one input handle and one output handle.
Measure first, then fetch
Section titled “Measure first, then fetch”The node checks the knowledge base’s size against maxTokens before reading a single row. When the knowledge base is over budget, the overflow setting decides what happens:
- Fail with an explanation is right inside a flow: an over-budget corpus is a configuration fact, and the error names the numbers and the alternatives.
- Return what fits and say so is right when an agent calls this as a tool: the model gets as many whole documents as fit, with
truncated: trueand the reason attached, and can fall back to searching. A failure inside a tool call is a failed run the model never gets to read, so pick this mode for agent wiring.
Truncation keeps whole documents only. A document cut in the middle reads as a complete one, and the model cannot tell, so the budget drops documents from the tail instead.
Configuration
Section titled “Configuration”

| Field | Type | Default | Description |
|---|---|---|---|
Knowledge base (collectionId) | string ✦ (required) | — | The knowledge base to read in full. |
Source key (sourceKey) | string ✦ (optional) | — | Read only this one source instead of the whole knowledge base. Leave empty for everything. |
Max tokens (maxTokens) | integer ✦ (optional) | 150000 |
Stop before handing over more than roughly this many tokens. The default suits a large-context model with room left for the conversation and the answer. |
Overflow (overflow) | one of error, report (optional) |
error |
What to do when the knowledge base is bigger than that. Failing is right inside a flow; returning what fits is right when an agent calls this as a tool. |
Fields marked ✦ accept expressions.
Try this node — run it once against your own workspace, with your credentials, without building a flow first.
Output
Section titled “Output”{ "collection_id": "01ktr9c0000000000000read", "collection_name": "handbook", "documents": [ { "source_key": "returns-policy", "title": "Returns policy", "url": null, "chunks": 3, "text": "Returns are accepted..." } ], "text": "## Returns policy\n\nReturns are accepted...", "sources": 1, "chunks": 3, "estimated_tokens": 420, "chunk_order": "exact", "truncated": false, "reason": null}documents groups the stored chunks by source key, in document order; text renders the same corpus once as markdown with a heading per document, which is the projection a prompt wants. chunk_order reports approximate when the knowledge base holds rows stored before chunk ordering existed, whose order within a source is then based on timestamps.
As an agent tool
Section titled “As an agent tool”Wire the node’s output to an Agent’s Tools handle to expose it as read_knowledge_base. To let the agent pick which document to read, put a tool parameter in the source key field:
{$fromAI:source_key:The document to read, or omit to read all:string}The tool only reads, so it stays available in every approval mode, including read-only.
Example
Section titled “Example”The template Rag / ReadCollection under Automation → Templates ingests a two-chunk returns policy under the source key returns-policy, then reads the knowledge base back whole with the default 150,000-token budget.
Limitations
Section titled “Limitations”- The source key filter is an exact match, not a pattern.
- A platform byte ceiling (12 MB of stored text by default) always fails the node regardless of the overflow setting; it protects the worker and cannot be raised from the node.
- Rows stored without a source key each come back as their own single-chunk document, since nothing proves they belong together.
Related
Section titled “Related”- Knowledge Base Query is the search read path for large knowledge bases and narrow questions.
- Knowledge Base Insert is what fills the knowledge base, and its source keys are what this node groups by.
- Agent can carry both read tools side by side and pick per question.
- Knowledge bases covers the knowledge bases this node reads back, and a knowledge base’s own settings page reports the size that decides whether reading it whole is realistic.
- How to choose between searching and reading is the guide behind that decision.