Knowledge base

Give an agent your documents so its answers come from them, not from the model's memory.

A knowledge base is a set of files an agent can draw on. When someone asks a question, Kopai finds the passages that actually relate to it and gives them to the model along with the question, so the answer comes from your documents.

ONCE, WHEN YOU UPLOAD Your file PDF, DOCX, XLSX, PPTX, CSV, JSON, TXT, MD — or a URL you index. Split into chunks Kopai reads the text and cuts it into passages small enough to retrieve. Stored as vectors Each passage gets an embedding and lands in a namespace scoped to that agent or project. EVERY TIME SOMEONE ASKS A QUESTION The question "What does the contract say about termination?" Closest passages win The most relevant chunks are pulled back — not the whole file. Answered with the passages in context The model sees your question and those excerpts together, so it answers from your documents instead of from memory.
Indexing happens once, when you upload. Retrieval happens on every question.

This matters more than it sounds. Without a knowledge base, an agent answers from whatever its model learned in training. With one, it answers from your contract, your handbook, your spec, and can tell you where it found the answer.

The organization file library

Files belong to your organization, not to one agent. Upload once and attach to as many agents as you like. Storage counts each file once, however many agents use it.

Org → Files is the library. Each row shows the size, who added it, when, and which agents use it. Files that no agent uses are flagged, so the library doesn't quietly fill up with dead weight.

The organization Files page with file count, storage, and files tagged with the agents that use them

Removing a file from an agent leaves it in the library. Deleting it from the library removes it everywhere.

Attaching files to an agent

Open Agent Builder → Capabilities → Knowledge Base, switch it on, and click Add files to pick from the library or upload new ones.

The Add files dialog, picking from the organization library

Save the agent first

The panel stays disabled until the agent has been saved once.

You can upload up to 5 files at a time. Large PDFs take a few seconds to index.

What you can upload

FormatFree planPaid plans
PDF, DOCX, XLSX, PPTX, CSV, JSONYesYes
TXT, MDNoYes
Images: JPG, PNG, WEBP, GIFNoYes

Limits

10Files per agent, free plan
20 MBTotal org storage, free plan
150 MBTotal org storage, Business Starter

Business Starter and Enterprise remove the per-agent file cap.

Indexing a URL

Paste a link into the URL field and click Index. Kopai fetches the page, pulls out the text, and treats it like an uploaded document. It's a snapshot, not a subscription, so if the page changes, index it again.

Getting good answers out of it

Retrieval finds passages, not whole documents, and it finds them by meaning. A few things follow from that:

  • Structure beats volume. A well-organized 20-page document retrieves better than a 200-page scan, because each passage carries enough context to stand on its own.
  • Split by topic. One file per subject retrieves more precisely than one file with everything in it.
  • Say it in the instructions. If the instructions don't tell the agent it has documents and should prefer them, it may answer from the model instead. "Answer from the attached documents; if they don't cover it, say so" is usually enough.
  • Scanned PDFs without a text layer index as nothing. If a PDF is just pictures of pages, there's no text to extract.

Projects have their own

Projects have a separate, smaller knowledge base: up to 10 files, 4 MB each, available to every chat in that project. See Projects.

Agent knowledge baseProject knowledge base
Belongs toAn organizationYou
Shared withAnyone using the agentOnly you
Files come fromThe org libraryUploaded to the project
Good forProduct docs, policies, reference materialOne client, one deal, one investigation

On this page