Document loaders
Notion Folder Document Loader
The Notion Folder Document Loader is a component designed to load and process data from an exported and unzipped Notion folder. It allows users to import Notion content into their application, with options for text splitting and metadata manipulation.
Node Details
- Name: NotionFolder_DocumentLoaders
- Type: Document
- Category: Document Loaders
- Version: 1.0
Input Parameters
-
Notion Folder (required)
- Type: string
- Description: The path to the folder containing the exported Notion content
-
Text Splitter (optional)
- Type: TextSplitter
- Description: An optional text splitter to break down large documents into smaller chunks
-
Additional Metadata (optional)
- Type: JSON
- Description: Additional metadata to be added to the extracted documents
-
Omit Metadata Keys (optional)
- Type: string
- Description: A comma-separated list of metadata keys to omit from the final output. Use ’*’ to omit all default metadata keys except those specified in Additional Metadata.
Output
The node outputs an array of IDocument objects, each representing a document from the Notion folder with the following structure:
pageContent
: The text content of the documentmetadata
: An object containing metadata about the document
Functionality
- Loads documents from the specified Notion folder
- Optionally splits the documents using the provided text splitter
- Adds any additional metadata specified
- Omits metadata keys as requested
- Returns the processed documents
Use Cases
- Importing Notion content into a knowledge base
- Processing Notion exports for analysis or search functionality
- Preparing Notion content for use in language models or other AI applications
Notes
- The node uses the NotionLoader from the @langchain/community package
- It supports flexible metadata handling, allowing for customization of the output
- The text splitting feature enables processing of large Notion exports into more manageable chunks
Was this page helpful?
Previous
Notion Page Document LoaderThe Notion Page Document Loader is a component designed to load data from a Notion page, including all child pages, and convert them into separate documents. This loader is particularly useful for integrating Notion content into natural language processing pipelines or other document-based workflows.
Next