Glossary

Knowledge base

A curated, searchable collection of documents and facts that people or AI agents query for answers, kept current as the underlying information changes.

A knowledge base for AI is a collection of documents, notes and facts that an AI agent searches to answer questions or complete tasks. It holds the material a model was never trained on: product documentation, internal policies, support history, contracts, research and recordings. An agent knowledge base is one built for a specific agent to read and often write to, and a company knowledge base is the shared version that covers an organisation's information. In each case the knowledge base is useful only while it is searchable and current.

How a knowledge base for AI differs from a traditional one

Traditional knowledge bases, such as help centres and internal wikis, are written for people to browse by title and category. A knowledge base for AI is built to be queried by a model. Content is extracted from its original format, split into passages, indexed for semantic search and usually keyword search as well, and returned as short passages the model can place in its context window. The agent answers from those passages through retrieval-augmented generation, which keeps its answers grounded in the organisation’s own material.

What goes into one

Building a knowledge base is a data pipeline with a few distinct stages. Data ingestion brings files, pages and records in from their sources. Document extraction turns PDFs, slides, audio and video into text and metadata, including OCR for scans. Chunking splits long content into passages, and indexing makes them searchable with an embedding model and a keyword index, often stored in a vector database. A retriever then finds the right passages at question time, sometimes with reranking to sort the candidates.

Component

Job

What goes wrong without it

Ingestion

Pulls content in from its sources

Gaps in coverage

Extraction

Turns files into text and metadata

Scans, tables and media go unsearched

Indexing

Makes passages searchable

Only filenames can be found

Retrieval

Finds passages for a query

Answers on the right topic without the fact

Maintenance

Re-ingests, re-tags and prunes

Answers from outdated documents

Knowledge base, memory and vector database

A knowledge base and agent memory answer different questions. The knowledge base holds what the organisation knows: documents that exist independently of any conversation. Memory holds what the agent has learned about a user or project from interactions, such as preferences and decisions. Most production agents use both, and agent memory vs knowledge base covers where the line sits. A vector database is one component of a knowledge base, the index, and it leaves storage, extraction and upkeep to you, the argument made in a vector database is not a knowledge base.

Keeping a knowledge base current

The hardest part of running a knowledge base is upkeep. Documents change after they are ingested, and the agent keeps answering from the old version until someone notices. Document freshness and stale knowledge describe the problem, incremental indexing avoids rebuilding everything on each change, and knowledge base maintenance covers the routine work of re-tagging, filing and pruning. The post knowledge bases rot sets out why ingestion has to run continuously.

Building a knowledge base on Exabase

Exabase provides the storage, extraction, search and upkeep layers; the questions your agent asks and how it uses the answers stay in your code. Each Base is an isolated environment with its own file storage, memory and search index, so one Base can hold a company knowledge base, or you can create one per customer, as multi-tenant SaaS describes. Files, notes and bookmarks stored as Resources are extracted and indexed when they are created, with no embedding pipeline to run. Extract handles PDFs, Word documents, images, audio, video and JavaScript-rendered pages, and Deep Search returns the matching passage with a page number or timestamp.

Upkeep is handled by Workers, agents that run on a schedule inside a Base. A Worker can re-extract documents that changed, tag and file new uploads, prune content that has aged out and update memories when the material behind them changes. The knowledge base solution covers this pattern, creating Bases explains the API, and how to build a company knowledge base for AI agents walks through a build. For other options, see best RAG as a service platforms and Exabase vs OpenAI file search.

FAQs

What is a knowledge base for AI?

A knowledge base for AI is a searchable collection of documents and facts that an AI agent retrieves from to answer questions, usually through RAG.

What is an agent knowledge base?

An agent knowledge base is one scoped to a particular agent, which searches it before responding and can often add notes and files to it as it works.

What is a company knowledge base?

A company knowledge base gathers an organisation’s documents, policies and records in one searchable place, so employees and agents answer from the same sources. Internal tools shows one way teams put it to use.

Is a vector database a knowledge base?

A vector database is the index inside a knowledge base. You still need storage, extraction and a way to keep content current, a distinction vector database vs memory also draws.

How often should a knowledge base be updated?

As often as its sources change. Daily suits fast-moving documentation, while weekly or monthly is usually enough for slower material such as policies or research archives.

Can Exabase keep a knowledge base up to date automatically?

Yes. A Worker runs on a daily, weekly or monthly schedule inside a Base and can re-extract changed documents, tag new ones and prune outdated content, and it only touches its own Base. Workers covers the setup.

Related pages: Agent memory vs knowledge base, RAG, Grounding, Data ingestion, Knowledge base maintenance, Document freshness, Stale knowledge, Knowledge base solution, Knowledge bases use case, A vector database is not a knowledge base.

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.