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 an embedding model when you create a hybrid knowledge base, or change it in ⋯ → 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. - Use your own embedding model, written as
@provider-key/model: OpenAI, Google Gemini, the University of Florida's NaviGator or an OpenAI-compatible endpoint you added under Provider keys. Your provider normally bills for passages and search questions. If the provider pool is configured to fall back to VIABLE credits and the model supports fallback, those calls can use credits.
Use Test embedding to check a short sample before indexing with your provider model. The result shows the vector size and who paid for the test. A provider may bill for the test. For example, if your UF NaviGator pool is named uf-navigator, try @uf-navigator/nomic-embed-text-v1.5. Saving checks the configuration again. To change the model that writes answers, open the Agent’s model settings. 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
Creating a hybrid knowledge base or turning on hybrid search requires an active VIABLE project API key with Model requests permission. It tracks requests and applies the key’s limits. Billed to key identifies the project key for indexing that uses VIABLE credits. With a provider model, the provider key selects the upstream account and normally pays for its calls. VIABLE does not charge for searches.
Choose Create with keyword search if you want to upload material before setting up a project API key. If the key for an existing hybrid knowledge base stops working, semantic indexing can pause while affected passages remain searchable by keyword. Open Check embedding settings to choose a usable key, or Retry embeddings after fixing a temporary provider problem.
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.

