The knowledge hub

Add documents and web pages to a knowledge hub your agent searches, and check that they have been indexed.

UPDATED NOVEMBER 23, 20263 MIN READ

A knowledge hub is a collection of documents your agent searches when a customer asks something its program doesn't state as a rule: the full baggage policy, fare conditions, an FAQ. In the Agent panel a hub appears as a RAG integration. You fill it by uploading files or importing web pages, and the agent searches whatever has been indexed.

The builder creates hubs and connects them to the program. Ask it in Build mode, for example: "Add a knowledge hub for ACME Air's fare rules and baggage policy, and use it to answer baggage questions." After that, you can add documents yourself from the hub's panel.

#Open a hub

  • From the Agent panel: on the Integrations tab, click the RAG integration, then Open knowledge hub in its Knowledge block. The card shows how many files the hub holds.
  • From the builder's conversation: when the builder creates a hub, it shows a Knowledge hub card that opens the same panel.

The Knowledge hub panel takes the right side of the Playground. It has two tabs:

  • Files: the indexed documents. Click one to view it, or use its download button.
  • Logs: the indexing runs and their status. A new upload shows here until it is indexed.
Add documents from New Document.

#Upload files

  1. Click New Document and choose Upload & Parse Files.
  2. Click to upload, or drag files onto the box.
  3. Click Upload.

Supported types are PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx), CSV, Markdown, plain text, HTML, and images (JPEG, PNG, BMP, TIFF). A file with the same name as one already in the hub is refused, so rename the new one first.

#Import a web page

  1. Click New Document and choose Parse Resources from URL.
  2. In URL, enter the page's address, starting with https:// or http://.
  3. Click Upload URL.

The hub crawls the page and indexes its content.

#Wait for indexing

Indexing runs in the background and can take a few minutes. A document appears in Files once it finishes; until then, follow it in Logs, where a failed run shows its error. You can close the panel while indexing runs.

#Hubs synced from another tool

A hub can also be kept in sync with a document tool your team already uses. The builder sets this up: it asks you to sign in to the tool and to pick what to sync. For such a hub, the integration's Knowledge block shows Last synced and how often it syncs automatically. Click Resync now to fetch new and changed documents straight away, for example after you edit an article.

#Before you add a document

A branch whose program doesn't search a hub ignores it; the hub's card says that this commit doesn't use it yet. To use the hub there, ask the builder to connect it, then push and test.

#From the CLI

Hubs can also be created and filled with apollo kb, for example to upload a folder of documents at once. See the command reference.

Was this article helpful?