Tool

Load Notion Data into LlamaIndex

LlamaIndex reader that loads data from Notion pages and databases using page IDs or database queries.

Works with notionllamaindexlangchain

Maintainer of this project? Claim this page to edit the listing.


76
Spark score
out of 100
Updated 20 days ago
Version 0.14.23
Models

Add to Favorites

Why it matters

Integrate Notion data into your LlamaIndex knowledge base. This asset allows you to query and ingest content from Notion pages and databases, making your information accessible for AI applications.

Outcomes

What it gets done

01

Connect to Notion using integration tokens.

02

Retrieve data from specific Notion page IDs.

03

Ingest content from Notion databases.

04

Prepare Notion data for LlamaIndex or LangChain.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/li-reader-readers-notion | bash

Overview

LlamaIndex Readers Integration: Notion

Loads Notion pages and databases into LlamaIndex When you need to retrieve Notion content by page ID or database ID for LlamaIndex workflows

What it does

The LlamaIndex Readers Integration for Notion loads data from Notion pages and databases. It constructs queries to retrieve pages based on specific page IDs or from a specified Notion database, making Notion content available for use within LlamaIndex workflows.

Inputs and outputs

You provide a Notion integration token for authentication, along with either a list of specific page IDs to load or a database ID from which to retrieve pages. The reader returns documents containing the loaded Notion content.

Installation and usage

Install via pip:

pip install llama-index-readers-notion

Basic usage example:

from llama_index.readers.notion import NotionPageReader

# Initialize NotionPageReader
reader = NotionPageReader(integration_token="<Integration Token>")

# Load data from Notion
documents = reader.load_data(
    page_ids=["<Page ID 1>", "<Page ID 2>"],  # List of page IDs to load
    database_id="<Database ID>",  # Database ID from which to load page IDs
)

Integrations

LlamaIndex: This reader is designed to load data into LlamaIndex.

LangChain: This loader can be used as a Tool in a LangChain Agent.

Who it's for

This reader serves developers working with LlamaIndex who need to load data from Notion pages and databases into their data pipelines.

Source README

LlamaIndex Readers Integration: Notion

Overview

Notion Page Reader enables loading data from Notion pages. It constructs queries to retrieve pages based on page IDs or from a specified Notion database.

Installation

You can install Notion Reader via pip:

pip install llama-index-readers-notion

Usage

from llama_index.readers.notion import NotionPageReader

### Initialize NotionPageReader
reader = NotionPageReader(integration_token="<Integration Token>")

### Load data from Notion
documents = reader.load_data(
    page_ids=["<Page ID 1>", "<Page ID 2>"],  # List of page IDs to load
    database_id="<Database ID>",  # Database ID from which to load page IDs
)

Implementation for Notion reader can be found here

This loader is designed to be used as a way to load data into
LlamaIndex and/or subsequently
used as a Tool in a LangChain Agent.

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.