Document loaders
Notion Database Document Loader
The Notion Database Document Loader is a component designed to load data from a Notion database. It treats each row in the database as a separate document, including all properties as metadata.
Node Details
- Name: NotionDB_DocumentLoaders
- Type: Document
- Category: Document Loaders
- Version: 1.0
Parameters
Credential
- Label: Connect Credential
- Name: credential
- Type: credential
- Credential Names: notionApi
Inputs
-
Text Splitter (optional)
- Type: TextSplitter
- Description: Used to split the loaded documents into smaller chunks if provided.
-
Notion Database Id (required)
- Type: string
- Description: The ID of the Notion database to load. Can be found in the database URL.
-
Additional Metadata (optional)
- Type: json
- Description: Additional metadata to be added to the extracted documents.
-
Omit Metadata Keys (optional)
- Type: string
- Description: Comma-separated list of metadata keys to omit from the final documents. Use ’*’ to omit all default metadata keys.
Functionality
- Authenticates with Notion API using the provided credential.
- Loads data from the specified Notion database.
- Optionally splits the loaded documents using the provided text splitter.
- Applies additional metadata if provided.
- Omits specified metadata keys if requested.
- Returns an array of IDocument objects.
Usage
This node is particularly useful for:
- Extracting structured data from Notion databases for further processing or analysis.
- Preparing Notion database content for use in language models or other AI applications.
- Creating a searchable knowledge base from Notion database entries.
Output
An array of IDocument objects, each representing a row from the Notion database, with the following structure:
pageContent
: The main content of the database entry.metadata
: An object containing all database properties and any additional metadata, with specified keys omitted if requested.
Notes
- Requires a Notion API integration token for authentication.
- Supports high concurrency (default 64) for efficient loading of large databases.
- Prepends a front matter header of the page properties to the page contents.
Was this page helpful?