What It Does
- fetches pages from the configured GitBook spaces, or from all spaces the API token can access
- fetches page content as Markdown from the GitBook API for indexing
- stores the space ID, page ID, page title, page URL, parent page ID (if available), description, tags, and created and updated dates as metadata
- re-indexes a page when its last update time changes
- runs ingestion on configurable schedules
Authentication
The connector authenticates with a GitBook API token. Generate one in your GitBook account settings under Developer settings.Required Environment Variables
Set these in.env.rag:
GITBOOK1_API_TOKEN: GitBook API tokenGITBOOK1_SCHEDULES: ingestion interval in seconds (default:3600)
config.yaml Example
.env.rag Example
Configuration Reference
Multiple GitBook Sources
Add moresources entries (gitbook2, gitbook3, etc) with separate env vars per source.