Knowledge Base
Turn company documents into the source of truth for your Agents
Without a knowledge base, an Agent can only answer from the general knowledge of the language model. Put product manuals, internal policies and FAQs in a knowledge base, and when someone asks a company-specific question such as “What is our return policy?”, the Agent first finds the most relevant passages and cites its sources. One knowledge base can serve several Agents, and employees can also ask it directly in MaiGPT.
- Three ways to add dataDocument upload, FAQs and web crawling
- Search test before launchCheck it finds the right passage
- Tags set the scopeDifferent audiences see different content
- Answers cite sourcesOne click shows the original document
Knowledge base or file library? Choose by what you need
The knowledge base is like a cheat sheet in an exam. Content is split into short passages so AI finds the answer fast. The file library is like the full textbook on your desk while you do homework. AI reads the whole original file and then does the work. Use the knowledge base to find answers. Use the file library to work on files.
Knowledge base
Looking up internal policies and SOPs, FAQ answers, and the source of truth for customer-facing service Agents.
File library
Writing proposals, comparing several quotes and contracts, updating documents to new specs.
The file library is part of MaiAgent Work. About the File Library →
What the Knowledge Base can do
Add documents, FAQs and web pages
Upload product manuals, internal policies and contract templates as documents. Turn common questions and standard replies into FAQ pairs. Use the crawler to pull website and public information automatically. Documents are split into passages and indexed as vectors, so a question finds the most relevant passages by meaning.
- PDF, Word and PPT parsing is auto-detected, or you can switch to OCR or Vision parsing
- Audio can be transcribed, including Taiwanese and Hakka
- For complex tables, save them as Excel, CSV or Markdown before uploading
Run a search test before launch
Enter a sample question to see which passages the Agent would get, sorted by relevance, and preview the source documents. If you find blank passages or missing answers, fix the data before launch.
- Switch between hybrid, semantic and keyword search
- Limit a test to specific files, FAQs or tag conditions
- Check that documents a user should not see are not retrieved
Use tags and metadata to set what an Agent can use
Add several tags to documents and FAQs, then filter the content an Agent can use by tag. For example, the member service Agent uses member and non-member content, while non-members see only public content. Metadata records version, department and review status, and can be sent to the model during retrieval.
- Tag conditions can require all tags or any tag, and you can combine several groups
- Choose which metadata fields are sent to the model during retrieval
- Set a URL and clicking a citation opens that web page
One knowledge base for many Agents and MaiGPT
One knowledge base can be linked to several Agents, and one Agent can use several knowledge bases. Service Agents on web, LINE and other channels answer only from the knowledge base. Employees can also ask the knowledge base directly in MaiGPT, with sources cited.
- Choose which roles can use it when you create it
- Switching an Agent’s model does not require rebuilding the knowledge base
- Every answer cites its sources, so you can trace the original text
The knowledge base uses Agentic RAG retrieval. It plans first, then searches in several rounds and checks its own results. How retrieval works →
How retrieval works
is up to the builder
Retrieval, parsing and storage are all configurable. Settings that must be chosen at creation are flagged on screen.
Each answer retrieves the most relevant passages, 12 by default, and you can adjust it for your content.
- 12 by default
- Adjustable
Turn on the Reranker to reorder search results, then set a similarity cutoff to filter out unrelated passages.
- Reranker
- Similarity cutoff
Chosen when you create the knowledge base. With a multimodal model, images themselves are indexed too.
- Chosen at creation
- Multimodal support
Stored in MaiAgent’s database by default. The enterprise edition can use your own database.
- Built in by default
- Your own on enterprise
Set a default tag filter in the Agent settings, and that Agent only uses content that matches.
- Per Agent
- Documents and FAQs
When creating a knowledge base, choose all roles, exclude default roles, or pick the roles that can use it.
- All roles
- Selected roles
Build a knowledge base in four steps
- 1Create a knowledge base
Name it and choose an Embedding model.
- 2Add data
Upload documents, create FAQs, or crawl web pages.
- 3Run a search test
Use sample questions to check it finds the right answers.
- 4Link it to an Agent
Connect the knowledge base in the Agent settings.
MaiAgent Build core features
Connect ERP, CRM and databases to look up data and carry out tasks
Learn moreCompany documents as the source for Agent answers
Learn moreBuild enterprise AI agents that carry out tasks
Learn moreOne endpoint for many model providers
Learn moreRole levels, per-entry audit logs and usage management
Learn moreFAQ
Should our data go in the knowledge base or the file library?
Ask yourself whether you need to find an answer or work on a whole file. For policies, SOPs and FAQs, or for customer service Agents that answer customers, use the knowledge base. For writing proposals, comparing quotes or having AI edit documents, use the file library. If you need the same material in both, maintain the original in the file library and put the cleaned-up final version in the knowledge base.
Can customer service Agents on our website or LINE read the file library?
No. Web, LINE, API and other conversation channels answer only from the knowledge base. The file library is used only in MaiGPT and internal Agent chats. Put anything customer service should answer from in the knowledge base.
How is a knowledge base different from a database?
A knowledge base handles unstructured data such as documents, articles and FAQs. A database handles structured data such as tables, fields and numbers. If the answer is in a document, use the knowledge base. If it is in a report, use system integration to query the database in natural language.
Do we need to rebuild the knowledge base when we switch models?
No. The knowledge base keeps working when you switch an Agent’s model. Note that the Embedding model can only be chosen when you create the knowledge base and cannot be changed later.
Can we deploy it in our own environment?
Yes. The Knowledge Base supports SaaS, cloud and on-premises deployment, and on the enterprise edition the vector database can also be your own. Contact us to find the right option for you.