When you enabled the Knowledge Base Module for your TypingMind instance in the self-host environment, the only data source available is File Upload. Here is how to enable external data source connectors like GitHub, Dropbox, Notion, etc.Documentation Index
Fetch the complete documentation index at: https://docs.typingmind.com/llms.txt
Use this file to discover all available pages before exploring further.
Note: This setup step requires technical skills to edit the database. We will make it easier to setup within the Admin Panel in the future.
Updating configuration in the PostgreSQL database
Open your PostgreSQL database that you used for the Knowledge Base module, select thetbl_orgs table. There should be one record in that table, select it and update the props value of the that record with the following value:
availableSourceTypes, identify the sources you want to enable using the values from the table below. Some data sources may require additional configurations as follow.
| Data Source | JSON Value | Required config properties |
|---|---|---|
| Notion | notion | notionCredentials |
| GitHub | github | No other properties needed |
| Web Scrape | web_scrape | webScrapeCredentials |
| Google Drive | google_drive | googleDriveCredentials |
Setup external data sources
Notion data source
Follow this guide to create a Notion integration. During creating the integration, you will be asked to provide a Redirect URL, use the value below:{DEPLOYMENT_HOST_NAME} with the actual host name of your self-host deployment.
Then add this new field to the value of props:
Web Scrape data source
Web scraping is done using an external service called Firecrawl. Go to https://www.firecrawl.dev/ to signup for an account and get an API key. Add this to the value ofprops:
Google Drive data source
Create a new project and an API credentials in your Google Cloud account. 1. Create Google Cloud Project- Go to Google Cloud Console
- Create a new project or select existing one
- Note the Project Number (found in project settings) - this is required by the application
- Google Drive API - for file access and management
- Google Picker API - for the file picker interface
- Go to APIs & Credentials > Credentials
- Click “Create Credentials” > “OAuth 2.0 Client IDs”
- Choose “Web application” as application type
- Configure authorized redirect URIs:
- Go to APIs & Credentials > Credentials
- Click “Create Credentials” > “API Key”
- Restrict the API key to:
- Google Drive API
- Google Picker API
- Your domain/IP addresses