A knowledge base holds documents and websites your agents search and cite. Use one when answers must come from your own material, such as a syllabus or a library's guides.
Knowledge bases live in Build → Knowledge. Agents search only knowledge bases in their own project.
Add documents and websites
- Make it. Click New knowledge base, name it, and choose how it searches (below).
- Add files. On Files, drop files or a folder, up to 15 MB each. Paste text adds notes or an FAQ.
- Add websites. On Websites, choose Specific pages, A whole website or Pages linked from one page.
- Choose how often to re-check. Check for changes runs from Daily to Yearly, or Only when I sync. The default is Monthly.
Files can be PDF, Word, PowerPoint, Excel, Markdown, text, CSV, HTML, JSON or images. Specific pages and A whole website take up to 20,000 pages per import. Pages linked from one page takes up to 1,000.
Specific pages also takes the link to a Google Doc, Slides or Sheet shared as "Anyone with the link can view". It reads the words, and reads them again on your schedule, so the knowledge base follows the document. One that isn't shared that way says so on its row. A file in Drive works the same way.
Tip
For LibGuides, use A whole website with Also add each page's sub-pages on. Its sitemap lists only each guide's first page.
Indexing runs in the background, and Retry failed tries failures again. Pages are fetched without JavaScript. Scanned PDFs without a text layer, and pages that need JavaScript, produce no text.
Choose how it searches
| Search | How it works | Best for |
|---|---|---|
| Hybrid | Keywords plus meaning, reranked | Paraphrased questions, and questions in other languages |
| Keyword only | Keywords, with no AI calls and nothing to pay | Predictable results on consistent terms |
To find passages by meaning, a hybrid knowledge base turns each passage into a list of numbers with an embedding model. Choose the model in its ⋯ → Settings, under Finding passages by meaning:
- Default model (recommended): multilingual, so an English question can find notes in another language. VIABLE's scores and "nothing found" are tuned for it. About $0.012 per million tokens, from credits.
- A catalog model:
nomic-embed-text-v1.5(mostly English), or Google'sgemini-embedding-001andgemini-embedding-2(multilingual). It costs its listed price in credits, or goes to your provider key for its provider when the project uses one for catalog models. - Your own model, through a provider key, written as
@provider-key/model: OpenAI, Google Gemini, UF NaviGator or an OpenAI-compatible endpoint you added under Provider keys. Your provider bills every passage and every search question.
Saving tries the model once, so a model the project can't reach, or whose vectors don't fit, is refused before anything is embedded. Changing the model embeds every passage again from the text already stored: no website is read again, and until a document is done it is found by keywords only.
Note
Only the default model is tuned with VIABLE's reranker. With another, a passage found only by meaning counts when the reranker agrees, so some paraphrases are missed and "nothing found" comes sooner.
Who pays for it
Embedding passages is billed to the key in Billed to key: an API key of the knowledge base's project that can make model requests. The default and catalog models are charged to its credits, and a provider key's model to your provider. It pays when passages are added or embedded again. Searching isn't billed, and Test search is free.
Without a key, a hybrid knowledge base finds its new passages by keywords only, and its page says so with Choose the key that pays. If the key runs out of credit or stops working, the same happens until it works again: press Embed them on the knowledge base's page.
Each indexing run is one row in Request logs, shown as Knowledge indexing and the knowledge base's name.
Settings that change answers
In the knowledge base's Settings:
- Passage size: Short, Standard or Long (about 600, 1,200 or 2,400 characters), or Custom, from 300 to 4,000. Changing it splits the stored text again, and a hybrid knowledge base embeds it again; nothing is fetched again. Agents don't change it per search.
- Leave out text a website repeats on its pages: drops navigation and footers from passages.
- Let readers open cited files: cited uploaded files link to the file for 7 days. Leave it off for internal or licensed files, and readers see only their names. Web pages always link.
Duplicate a knowledge base
⋯ → Duplicate… makes a copy, in this project or another where you're an owner or editor. It takes the documents, their passages and search index, and the knowledge map as last built. Nothing is fetched from websites or embedded again, so it costs no credit.
- Websites keep their schedule, so each site is read for both. Set the copy's websites to Only when I sync if one is enough.
- In another project, choose one of its keys to pay for new passages, and build the map again there to keep it up to date. A model named through this project's provider key (
@…) isn't copied: the copy embeds again there once you choose a key and a model. - Agents that search the original keep searching it.
To try another model or passage size, duplicate first and change the copy.
How agents search
Two steps search, and they suit different questions.
- A Knowledge step searches its Knowledge bases once, for the current message or what you write in Search for, and passes on numbered passages: Passages to return is 5 by default and up to 20. Put
{{search.context}}in an LLM step's instructions. Tell it to answer only from those sources and cite them as [n]. Branch on{{search.count}}, which is 0 when nothing matched. The Answer from my documents template works this way. - An Agent step with Use knowledge searches as often as it needs and reads whole sections. Use it for lists, comparisons and questions that span several sources.
Citations
Citations are numbered in the order a reply mentions them, one per page or file. On a chat page, each reply shows its sources.
Test search shows exactly which passages an agent would receive for a question. Build an agent with it starts the agent designer with this knowledge base chosen.
Your own AI can do all of this through the CLI: viable developer knowledge create, settings, duplicate, retry and search.
- Steps: the Knowledge, LLM and Agent steps in context.
- VETTING: have a reviewer check replies against your sources.
- Chat pages for websites: what visitors see of your sources.

