Skip to main content

Knowledge sources and RAG

Knowledge sources are the controlled context that NaviBot can use when answering visitor questions. They are separate from the OpenAI account.

Open:

/app/knowledge-sources

Supported source types

SourceUse case
Markdown / docsProduct docs, FAQ, onboarding text, pasted knowledge
NotionClient-managed pages or databases
SeaTableStructured knowledge tables and operational records

Document states

Documents are stored as RAG documents. Only documents with ready status are used by OpenAI context.

StatusMeaning
pendingloaded but not ready yet
readycan be used by the assistant
disabledvisible in the UI, not used by the assistant
errorindexing failed

Notion setup

Use:

  • NOTION_API_KEY
  • NOTION_DATABASE_ID

The API key should be stored in encrypted integration credentials. The RAG source config should keep safe values only, such as database id, limit, and integration_id.

File selection

After loading files from Notion or another source, the client should be able to select which files are used. Disabled files stay visible but are not included in OpenAI context.

Current limitation

Indexing is currently synchronous. This is acceptable for small sources. Large Notion or SeaTable bases should later move to a background job queue.