Glossary
Knowledge base maintenance
The recurring work of keeping a knowledge base accurate after ingestion: re-extracting changed documents, organising new material, removing duplicates and pruning outdated content.
Knowledge base maintenance is the recurring work that keeps a knowledge base accurate after its content has been ingested: re-extracting documents that changed, filing and tagging new material, removing duplicates and pruning content that is no longer true. Without it, an agent built on RAG keeps answering from versions of documents that have since been edited or withdrawn.
Why knowledge bases need maintenance
Ingestion is often treated as a one-off job, but the source documents keep changing. Product docs are rewritten, policies are revised and support articles are retired. Nothing fails when the index falls behind, so stale knowledge shows up only when an answer is wrong in front of a customer. The longer a corpus runs without upkeep, the more of it drifts out of date, and document freshness drops across the whole collection rather than in one obvious place.
Maintenance also covers problems that arrive with new content. Uploads land in the wrong folder or without tags, near-identical copies pile up and need deduplication, and links inside documents decay through link rot. Each of these makes retrieval noisier even when every individual document is correct.
What a maintenance routine covers
Most routines combine the same handful of tasks, run at a frequency that matches how fast the content changes.
Task | What it involves |
|---|---|
Re-extraction | Processing changed documents again so the index reflects their current text, usually through incremental indexing |
Filing and tagging | Moving new resources into the right folders and applying consistent tags and file metadata |
Deduplication | Finding copies and near-copies so one version answers each question |
Pruning | Removing or flagging content that has aged out, been superseded or points at dead links |
Memory updates | Revising facts an agent holds in memory when the documents behind them change |
Index rebuilds | A full re-indexing when the embedding model or chunking changes, which is rarer and separate from routine upkeep |
The last row is worth separating out. A rebuild fixes structural problems such as embedding drift after a model change. It does nothing for content that is out of date at its source, which is the more common failure.
How often to run it
Frequency follows the rate of change. Fast-moving product documentation and support content usually suit a daily pass. Internal wikis, research libraries and policy documents often do well on a weekly or monthly schedule. Measuring how quickly answers go stale against a golden dataset of real questions gives a better signal than guessing, and the post on how to measure knowledge base staleness covers practical methods.
Teams that do this by hand find it slips whenever the team is busy. A cron job that re-ingests everything is wasteful at small scale and impractical at large scale, and it still leaves scheduling, retries and alerting to own. That gap is why scheduled agents and other background agents have become a common way to run upkeep: the job is described once and carried out on a timetable.
Knowledge base maintenance on Exabase
On Exabase, maintenance is the job of Workers. A Worker is an autonomous agent that runs inside a single Base, follows a plain-language prompt and runs on a daily, weekly or monthly schedule or on demand. Its built-in tools cover the usual tasks: searching and reading resources, creating and editing notes, creating folders, renaming and moving resources, applying tags, moving outdated items to the bin and searching the web. The worker tools guide lists them, and the guide to running workers explains on-demand runs.
Documents are stored as Resources and indexed as they are written, so new material is searchable through Deep Search without a separate pipeline. When a source changes, a Worker can re-extract it with Extract, and it can create, update and resolve entries in Memory so stored facts stay in line with the documents. Each run is recorded as a full conversation with every tool call, which gives an audit trail of what changed and why. Because a Worker can only reach its own Base, one Worker per customer keeps each tenant’s knowledge base separate.
Exabase provides the schedule, the tools and the scoped access. Deciding what counts as outdated for your content is still a judgement you write into the prompt. The knowledge base solution describes the full pattern, the knowledge bases use case shows example architectures, and 20 Worker prompts that keep a knowledge base healthy gives starting points. If you are weighing a general automation tool instead, Exabase vs Zapier and Exabase vs n8n compare the approaches.
FAQs
What is knowledge base maintenance?
Knowledge base maintenance is the ongoing work of keeping a knowledge base current after ingestion: re-extracting changed documents, organising new material, removing duplicates and pruning outdated content.
Why do knowledge bases go stale?
Source documents keep changing after they are ingested, and nothing in a typical RAG pipeline notices. Without a recurring update, the index keeps serving the old versions. The post knowledge bases rot: ingestion isn’t a one-time job covers the pattern in more detail.
How often should a knowledge base be maintained?
As often as its content changes. Daily suits fast-moving documentation and support content, while weekly or monthly is usually enough for slower corpora such as policies or research libraries.
Is re-indexing the same as maintenance?
No. Re-indexing rebuilds the index after a structural change such as a new embedding model. Maintenance keeps the content itself current and runs far more often.
Can an AI agent maintain a knowledge base?
Yes. A scheduled agent can re-extract changed files, tag and file new ones and prune outdated content. On Exabase this is what Workers do, within the tools and resources you allow.
Can I see what a maintenance run changed?
Yes. Every Worker run on Exabase is stored as a conversation with the Worker’s reasoning and tool calls, viewable in the console or through the Workers API.
Do I need a scheduler or cron job?
Not on Exabase. Workers run on Exabase infrastructure with their own schedule, so there are no servers, cron jobs or retry logic to host. The post on why cron jobs are the wrong abstraction for AI explains the reasoning.
Related pages: Stale knowledge, Document freshness, Incremental indexing, Re-indexing, Deduplication, Scheduled agents, Knowledge base solution, Knowledge bases use case, Daily digests use case, Exabase vs n8n.