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
reader = NotionPageReader(integration_token="<Integration Token>")
documents = reader.load_data(
page_ids=["<Page ID 1>", "<Page ID 2>"],
database_id="<Database ID>",
)
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.