What It Does
- authenticates to Microsoft Entra ID using client credentials (app registration)
- fetches files from a SharePoint drive/folder, or pages from a SharePoint site
- extracts plain text from files and pages for indexing
- runs ingestion on configurable schedules
Modes
- File mode (
sharepoint_type: file, default): loads files from a drive/folder - Page mode (
sharepoint_type: page): loads SharePoint site pages
Authentication
Authentication uses Microsoft Entra ID client credentials (an Azure app registration) —client_id, client_secret, and tenant_id.
Required Environment Variables
Set these in.env.rag:
SHAREPOINT1_CLIENT_ID: Azure app registration client IDSHAREPOINT1_CLIENT_SECRET: Azure app registration client secretSHAREPOINT1_TENANT_ID: Azure tenant IDSHAREPOINT1_SCHEDULES: ingestion interval in seconds (default is3600)
config.yaml Example
File mode
File mode — with folder path
File mode — with site ID
Page mode
.env.rag Example
Configuration Reference
Multiple SharePoint Sources
Add moresources entries (sharepoint2, sharepoint3, etc) with separate env vars per source.