Topic: Maintenance
Knowledge base maintenance: is Sanity Context the answer?
Quick answer
Knowledge base maintenance is the work of keeping the content your AI reads accurate and consistent. Sanity Context flags contradictions for a person to resolve, but it can't do the fixing for you.
Written by

On this page
- What is knowledge base maintenance?
- Why does AI get out of date?
- Can good content stop AI making things up?
- How Sanity Context works
- Getting started with Context
- Contradiction flags: the standout feature
- Testing Context with an AI agent
- What it costs
- Where it falls short
- Is Sanity Context a good fit for you?
- The verdict
I spent years looking after a large SaaS knowledge base that powered AI agents. And honestly, I never found a good way to keep it up to date properly.
The hard part was keeping a huge body of content accurate: there were constant product updates, teams working in different languages, and context stored all over the place. In the early days of large language models, tools to manage agent context simply didn't exist.
Now Sanity says it's built the tool I wish I'd had. It's called Sanity Context, and its Knowledge Base feature is designed for exactly this: to keep the content that powers your AI under control.
Full disclosure: I'm biased. I've built several projects on Sanity, and I think it's the best platform of its kind.
But… this is an honest review. So I'm going to be upfront about what Sanity Context does well, what it doesn’t and whether it’s a good fit for you.

What is knowledge base maintenance?
Knowledge base maintenance is the ongoing work of keeping help content accurate, complete and consistent. It means updating articles when things change, removing info that no longer applies, and making sure two facts never create contradictions. Now that AI assistants answer customers from that content, it matters more than ever. It's the same habit as keeping your website up to date, applied to the content your AI reads.
Why does AI get out of date?
AI systems are getting smarter all the time. But they only have the context we give them.
Think about a returns policy. Maybe it used to be 90 days, but it’s reduced to 60. An AI assistant doesn't know your returns policy changed. It only knows what your content says.
In the past, an out-of-date help article misled the one person who read it. Now an AI repeats it to every customer who asks.
The problem gets worse as you grow. The same fact ends up in your help centre, on a product page or in memos that spread all over Slack. When that happens, the AI has to decide which version to believe, every single time someone asks.
Can good content stop AI making things up?
Partly. AI models get things wrong for lots of reasons, and your content is only one of them.
But it is the factor that’s easiest to control. If several sources disagree, even the best model will sometimes pick the wrong one. Clean, consistent content removes that whole class of mistakes.
This is the problem Sanity Context sets out to solve. I set out to test it, using a recent client project, Azimap Help Centre.

How Sanity Context works
Sanity Context takes the material you already have, such as a website or a set of files, and turns it into an organised index that AI agents can read.
Sanity Context works with any tech stack. You do need a Sanity account, but you don’t need to be using Sanity to host your content, and you don’t need to build your agent using Sanity.
Once you’ve built a knowledge base, Sanity reads your sources and sorts them into a tree of topics. It writes an entry for each topic, then checks the result. Anything that doesn't add up is raised as an issue for a person to review.
I’m really attracted to this simple idea, because in my experience testing for accuracy was very difficult and time consuming. In the past I had to create “evals” - systematic tests designed to evaluate accuracy - for the most important and well-searched information. Content is not meant to be managed using engineering workflows, and this process was painful.

Getting started with Context
Building a knowledge base is genuinely easy. In the Sanity Dashboard, open Context > New knowledge base. Then there are three steps.
- Add your sources. Give it the address of a website, an existing Sanity dataset, or upload files such as PDFs and Markdown. Sanity recommends starting with a focused set of material you trust (such as your help centre), rather than your whole site.
- Describe its purpose. Answer three questions: who it's for, what it should help them do, and what to leave out. These fields have neat AI suggestions that worked first time for me.
- Build it. Your new knowledge base will begin building in the background. This should take a few minutes. Larger sources take longer, but you’ll get an email when it’s ready.
I added the existing dataset that powers the site docs.azimap.com, as well as the non-Sanity marketing site www.azimap.com. In total, the two Azimap sites came to about 120 pages, and the build took about 2-3 minutes.
Contradiction flags: the standout feature
Once the knowledge base is built, you can view a list of “Entries”, which are automatically-generated articles that the AI uses to power its own context. From these, Sanity Context works out where any inconsistencies live, and flags them up under the “Issues” tab.
In just a few minutes, the system had flagged up 9 issues that it had found in the sites I had added. The UI makes it easy to view each issue, check the chunks of information side-by-side, and select the correct case. Making a decision adds that issue to a “Resolved” queue, which makes it easy to revisit if needed.
When an issue has been resolved, the system generates an “Instruction” that it gives to the agent in order to make the right decision. This can be viewed from the Instructions tab.
These instructions are read-only - it doesn’t seem to be possible to manually rewrite the instruction. I think this is by design - the knowledge base is, after all, read-only - any changes to content must be made from the original source and then re-synced. Maybe this is necessary for robust governance, but I couldn’t help thinking it could be refined.
Whenever you have resolved any issues, select “Rebuild” again to have those recognised by the system. I found it a little unintuitive to locate the Rebuild button, which was tucked away behind an ellipsis menu. Even when all issues were resolved, there was no obvious “Rebuild now?” alert.

Testing Context with an AI agent
Sanity Context is not an out-of-the-box agent builder, so you won’t find the “copy embed code for your site” approach that you see elsewhere.
AI agents connect to Context through an MCP endpoint, a web address that serves the knowledge base to any AI tool that supports MCP. You can set this up via command line, add to a chat client (like Claude or OpenAI), spin up your own agent, or anywhere else where MCP is supported.
This part of the process is not designed for non-technical users. You might need help from a developer if you don’t have experience setting up agents and apps.
I chose to test using Grok Agent SDK, and a lightweight browser chat talking to Claude Haiku and the Sanity Context MCP endpoint. Fairly quickly, I had an agent that was answering questions from the knowledge base.
Most likely, you are already using agents in your organisation. MCP has become so standard, that you can probably connect a Sanity Context knowledge base to the platform you are using already.
What it costs
You don't need a paid Sanity plan to start. The free tier is enough to build your first knowledge base. At the time of writing, the pricing is split into three (prices are in US dollars):
- Free: One knowledge base, up to 10,000 source chunks, and no scheduled refresh.
- Self-serve: $299 a month. Five knowledge bases sharing 50,000 source chunks, with weekly or monthly refreshes.
- Enterprise: Add-ons get you more than five knowledge bases and 100,000+ source chunks.
I had no idea what a source chunk was, but the 120 pages I added generated about 550 chunks. So 10,000 seems generous for a free tier.
There are a few other costs to budget for:
- Developer time. You might need help to connect the MCP endpoint to your AI assistant.
- Editor time. Someone has to review the issues it raises. More on that below.
- Other hosting or AI providers. The LLM and agent stack lives outside of Sanity and is billed separately.
Where it falls short
For all its benefits, Sanity Context does have a few weaknesses. Here's what to be aware of before you start.
- It’s not self-driving. Yes, the system can sync sources regularly, but it doesn't rewrite anything. You need to have a human in place to check issues on a regular basis, and make changes to the underlying content. This is good practice for content operations, but not ideal if you are looking to completely automate.
- No direct connection to documents. If your information lives in Google Docs, Word, Notion - or any other cloud platform - there’s no way to create a live connection to the knowledge base. All changes will have to be uploaded as files from your device, which would really bump up the effort needed to maintain the system.
- Pages behind a login can’t be synced. Many help sites live in a customer portal, and for these cases Context cannot connect directly. Unless that content lives in Sanity, you would need to upload it as files instead.
- Connecting to an agent needs a developer. Building a knowledge base in Sanity Context is easy, but plugging it into your AI assistant takes some technical know-how.
- Conflicts cannot be refined manually. When several sources disagree, the UI offers a choice and uses that to generate the “instruction” to the agent. I couldn’t find a way to overwrite this - although the official docs say you can - but maybe this is a teething problem with the UI.
The knowledge base is also read-only, so it can't create or edit content. For that, see how AI can help run your website.
Is Sanity Context a good fit for you?
You’ll get a lot from Sanity Context if this sounds like you:
- Company information is spread across a help centre, a website and documents, and they've started to drift apart
- You want an AI assistant to answer from one checked source
- There’s no way to check how your AI is deciding what to tell customers
- The right human expertise is available: a technical person to set things up, and someone with the understanding to review contradictions
On the other hand, this might not be for you if:
- Most of your company knowledge exists as cloud documents or behind a login
- You want one AI agent that reviews and edits your content, without extra setup
- Nobody on your team has time to regularly review issues between sources
The verdict
Is this the solution to broken AI agents? For some teams, yes.
Sanity Context is the only tool I've found that puts a person in charge of the assumptions your AI is making, without needing engineering tools. The contradiction management alone would have saved me a lot of time when I was managing a large SaaS knowledge base.
But… it isn't magic. It finds the problems and makes them easy to fix, but a person still has to do the fixing. Good knowledge base maintenance takes real human time, and no tool removes that.
What Sanity Context does is make sure that time goes on the decisions that matter, rather than hunting for the problem in the first place. And it’s hard to put a value on that peace of mind.
Photo by The National Library of Norway on Unsplash