An AI knowledge base answers questions from your own files and shows the document each answer came from. To build one, you write down the questions your team really asks, connect the files that hold the answers with the same permissions people have today, and test the answers against a list before anyone relies on them. This post is for an operations or IT leader whose people cannot find answers in policies, SOPs, price sheets and old email. It covers the build steps, when a tool you already pay for is enough, how permissions carry over and how to test.
It matters because a confident wrong answer ends up in a quote or a contract.
The Gnar Company does RAG development for company knowledge bases: AI that answers questions from your own files. That is the work behind our knowledge bases service. This post tells you how to build one, and when you should skip building and use what you own.
What is an AI knowledge base?#
An AI knowledge base is a set of your company's documents that an artificial intelligence system can search and answer from, in plain language, with a link back to the source. It replaces the habit of searching folders by keyword and then guessing which file is current.
Many AI knowledge bases use a method called RAG, short for retrieval-augmented generation. Anthropic describes it in plain terms: RAG is a method that retrieves relevant information from a knowledge base and appends it to the user's prompt. In short, the AI looks things up in your files before it answers.
That is different from asking a general AI tool that cannot see your files. Such a tool answers from what it learned in training, so it cannot know your current prices, policies or contract terms. A knowledge base answers from your internal documentation: the SOP that was revised in March, the price sheet for one customer, the warranty policy.
Traditional knowledge bases are folders, wikis and help centers that a person searches by keyword. An AI knowledge base sits on top of that stored knowledge and lets users ask in natural language. It does not replace the documents. It makes them findable. To the person asking, it often looks like an AI chatbot: a question box that answers in plain language. Behind it, natural language processing reads the question, retrieval finds the passages, and generative AI writes the answer from them. Help center articles written for customer self service can go in too, because they already answer common questions in plain words.
If the source files are a mess, retrieval and generation cannot fix it. Our post on fixing your data before AI covers that problem in more depth.
How do AI knowledge bases work?#
AI knowledge bases work in two stages: preparing your files so they can be searched, then looking up the right passages every time someone asks a question. The preparation has to be redone when files change. The preparation makes the files searchable. The lookup finds the right passages and hands them to the language model.
Anthropic lays out the preparation steps. Your documents are broken into chunks, usually no more than a few hundred tokens. An embedding model turns each chunk into a vector, a list of numbers that encodes meaning. Those vectors are stored in a vector database that can be searched by semantic similarity. The embedding model is a machine learning model, so the system can match a question to a passage that uses different words.
Semantic understanding is what lets a question like "can we ship to a PO box?" find a passage that says "carrier restrictions on postal addresses." The words differ. The meaning matches.
Meaning-based search has a known gap. Anthropic gives an example: a user searches "Error code TS-999" in a technical support database. An embedding model might find content about error codes in general, but could miss the exact TS-999 match. So good systems also run an exact-match search, such as the BM25 ranking function, and combine the two results.
Part numbers, contract IDs and policy numbers are exact strings, so a system that only searches by meaning can miss them.
Do you need to build one at all?#
You may not need to build anything, because a tool you already pay for can be enough when your files sit in one place. Try it on a short list of real questions before you spend a dollar on a build.
Here is how the options compare.
| Your situation | Likely fit | Limit to know |
|---|---|---|
| Files all in SharePoint, and you already have Microsoft Copilot | Copilot may answer most questions | Microsoft says Copilot only surfaces data to which each user has at least view permissions |
| Files fit in one folder, and you already use Claude | A Claude Project may be enough | If the Project outgrows that folder, Claude says RAG for projects is available on paid plans and expands project capacity by up to 10x |
| A small document set, under 200,000 tokens | Put it all in the prompt | Anthropic says this is about 500 pages of material |
| Answers live in an old database, a file share and a wiki at once | A build, with the question box inside software your team already uses | One tool may not reach all three |
Microsoft's privacy page says Copilot only surfaces organizational data to which individual users have at least view permissions. That is a useful starting point for permissions. The Claude Help Center covers the other option in its page on RAG for projects.
Our own service page makes the same call. It says you might not need us. If your files all sit in SharePoint and you already have Microsoft Copilot, it may answer most questions. If they fit in one folder and you already use Claude, a Claude Project might. If that is you, we will say so on the call.
Some answers live in an old database, a file share and a wiki at once. When one tool cannot reach all three, that is when the question box gets built into the software your team already uses.
Run this test first. Pick 20 real questions from the last month and write the right answer beside each one. Then ask each question in the tool you own and mark its answer right, wrong or missing against your key. For every miss, note the cause: the document is missing, the tool cannot reach it, two versions disagree, or the search pulled the wrong passage.
How to build an AI knowledge base, step by step#
You build an AI knowledge base in eight steps, and the first one is a list. The order matters because each step gives the next one something to check against.
Step 1: List the real questions and their right answers#
Write down the questions your team actually asks, and the correct answer to each one. Pull them from support tickets, chat logs and your sales reps.
This list becomes your test.
Step 2: Find where the answers live#
For each question, note which file or system holds the answer. Some will be in one person's head. That is a finding too.
Step 3: Clean and name the files#
Remove old versions, mark what is current, give files clear names, and split long manuals into smaller standalone articles where you can. The Claude Help Center says to use clear, descriptive filenames and says well-named files help Claude understand and retrieve the right information more effectively. Tags on each file, such as owner, customer and date, also help organize information and make reference material easier to find. A file called "Final_v7_REAL.docx" helps nobody, human or machine.
Step 4: Connect with the same permissions#
Connect the files so the system follows the access rules you already have. If someone cannot open a folder today, they should not get answers from it. Do not copy files into a new place with new, looser rules. If you build, connect each system that holds answers, such as SharePoint, a file share or a database, through an API integration or a connector, and check the asking person's access rights before any passage is retrieved.
Step 5: Index and retrieve#
Prepare the files as described above: chunk them in a way that keeps each passage's context, build the vectors and add the exact-match search. Anthropic's contextual retrieval work is about that first part, because traditional RAG removes context when it encodes a chunk, and the search often misses the right passage. This is the technical core, and it is the part a tool you own may already do for you.
Step 6: Test against your list#
Run every question on your list through the system. Compare each answer to the right one you wrote in Step 1, fix what fails and run it again. After launch, review which questions failed so you can refine responses over time.
Step 7: Send unanswered questions to a person#
Decide what happens when the files hold no good answer. The safe design lets the question go to a person instead of a guess. Routine questions get answered from the files, and anything unresolved goes to a person on your team who decides the answer with human judgment.
Step 8: Keep it current#
Name an owner for the knowledge base, responsible for updates and for reviewing which questions failed. When a policy changes, update the file, then confirm the knowledge base answers from the new version before anyone relies on it. Test deletions and access changes the same way. As the knowledge base grows, those reviews keep the answers relevant.
Which documents should go in first?#
Start with the documents that answer the questions your team asks most often, including the ones that change, such as price sheets. A small, clean first set gets you to a working test sooner, shows you where the real problems are, and puts essential knowledge where people can find it. Start with the team that fields the most repeat questions, often sales or support teams.
Use this checklist to pick the first batch:
- Documents that answer the top 20 questions on your list
- Current price sheets, rate cards and terms
- SOPs and work instructions with a named owner
- Policies that people ask about weekly, such as returns, warranty and shipping
- Troubleshooting guides and common questions with settled answers
Leave out old versions nobody retired, email threads with no clear final answer and folders with unclear access rules.
How to handle complex questions#
Complex questions need more than one document. A rep asks, "Can we quote this customer net 60 on a custom order?" The answer depends on the credit policy, the customer's contract and the custom-order terms. The system has to pull from all three and show each source.
Include questions like this on your list, and write down every source the right answer needs.
How do you keep answers accurate?#
You keep answers accurate by making every answer traceable, testing against a written list, and rerunning that test whenever something changes. Accurate responses come from a process you can repeat.
Use this checklist:
- Show the source document on every answer, so a person can open it and check the wording before it goes to a customer. A source lets someone check the answer. It does not prove the answer is right.
- Write down the right answer to each question on your list, and check the AI against it before launch.
- Send questions to a person when the files hold no good answer, instead of a guess.
- Rerun the test whenever the AI vendor updates its model. AI companies update their AI often.
- Name an owner for the files, so out-of-date documents do not feed accurate-sounding wrong answers.
Retrieval quality counts too. Anthropic reports that its Contextual Retrieval method can reduce the number of failed retrievals by 49% and, when combined with reranking, by 67%. Failed retrievals are the cases where the right passage exists and the search misses it.
A knowledge base can still be wrong. Any AI can make things up. That is why the source link and the test list matter more than any claim about the model.
How do you keep private files private?#
You keep private files private by making the system follow the permissions you already have, and by testing that it does. Do not rely on telling the AI to keep secrets. Privacy concerns belong with your security team before launch, so show them the permission model.
On our service page, the rule is simple. People only get answers from files they can already open. If a folder is locked to someone today, the AI leaves it out of their answers too.
The reason to enforce this in the system itself is on the OWASP list of risks for language model applications. Its entry on sensitive information disclosure tells builders to limit access to sensitive data based on the principle of least privilege. It also warns that restrictions placed in the system prompt may not always be honored and could be bypassed through prompt injection.
In plain words: a line in the prompt that says "do not reveal salary data" only asks the AI to behave. The control has to sit where the files are retrieved.
If you build, filter at retrieval so the system only pulls passages the asking person may open. If you use Copilot, test it with a person who lacks access.
Microsoft states that prompts, responses and data accessed through Microsoft Graph aren't used to train foundation LLMs. For Claude, read our post on whether Claude trains on your company data.
Our guide to getting Claude through a security review helps if your security team must approve the tool.
What does an AI knowledge base cost?#
The cost depends on whether you use a tool you own or build one, and we can only quote what The Gnar Company publishes. The first route costs the subscription you already pay plus your team's time to clean files and write the test list.
For a build, here are Gnar's published figures:
| Item | Published figure |
|---|---|
| Discovery | Four to six weeks, $20,000 to $30,000, ends in a build plan with a fixed price |
| Builds | Typically run $150K to $300K+ |
| Support from Gnar | Optional, starts at $1,000 a month |
| What you keep | The code and the test questions |
Discovery is paid planning that maps the questions and the files, so the build price is fixed before any build work starts.
Three commitments on every build engagement: a fixed milestone price with any overage on us, a guaranteed outcome meaning the software works as specified or we fix it, and a twelve-month bug-free warranty. It covers Discovery, Build, Forge and Maintain. It does not cover Embed. On Compass, Immerse and Integrate, ask us.
If your own team has the capacity and the direction, you do not need us. Producing code is close to free now. Understanding your operation is not.
How The Gnar Company builds knowledge bases#
The Gnar Company builds a knowledge base in three steps: map the questions and the files, build it and test it, then hand it over. We write the questions down first, because the test is the product's proof.
Step 1, Discovery. We list the questions your team asks most and where the answers live. You get a build plan with a fixed price.
Step 2, Build and test. We connect your files and test the AI's answers against the list. If your files do not hold a good answer, the question can go to a person instead of a guess.
Step 3, Hand over. You get the code and the test questions. Your team, or ours on support, can rerun the test any time.
Claude is our default AI. Anthropic runs the Claude Partner Network, and Gnar is a Claude Select Services Partner in it.
Gnar has built search where getting the answer right matters. For the Massachusetts Department of Early Education and Care, we worked on software that migrated 500K+ rows of data from the legacy system and supports 80K+ background record checks a year, with real-time search. You can read it in Keeping Children Safe with Software.
For the Massachusetts Disabled Persons Protection Commission, we built registry search behind a login. 500+ organizations are required to use the registry. That story is in Building Software to Help Prevent Abuse Against Adults with Disabilities.
If you want to see where your own files stand, start with Discovery.
Common mistakes to avoid#
The mistakes to avoid sit in the files, the access rules and the test, including the test you rerun after a model update. Check your plan against this list.
- Skipping the question list, then judging answers by feel
- Copying files into a new system with looser access rules
- Trusting a line in the prompt to keep private data private
- Letting the AI guess when the files hold no answer
- Launching once and never rerunning the test after a model update
- Ignoring exact-match search, so part numbers and contract IDs get missed
If you want a first step this week, take the 20-question test from earlier and run it in the tool you own. The causes you wrote down tell you what to do next: fix or add documents when they are missing or out of date, adjust the tool when it cannot reach a source, and scope a build when the answers sit in systems no tool you own can reach. If you want a second opinion on that result, talk to us about Discovery.


