langchain_community.document_loaders.joplin.JoplinLoader¶

class langchain_community.document_loaders.joplin.JoplinLoader(access_token: Optional[str] = None, port: int = 41184, host: str = 'localhost')[source]¶

Load notes from Joplin.

In order to use this loader, you need to have Joplin running with the Web Clipper enabled (look for “Web Clipper” in the app settings).

To get the access token, you need to go to the Web Clipper options and under “Advanced Options” you will find the access token.

You can find more information about the Web Clipper service here: https://joplinapp.org/clipper/

Parameters
  • access_token – The access token to use.

  • port – The port where the Web Clipper service is running. Default is 41184.

  • host – The host where the Web Clipper service is running. Default is localhost.

Methods

__init__([access_token, port, host])

param access_token

The access token to use.

lazy_load()

A lazy loader for Documents.

load()

Load data into Document objects.

load_and_split([text_splitter])

Load Documents and split into chunks.

__init__(access_token: Optional[str] = None, port: int = 41184, host: str = 'localhost') None[source]¶
Parameters
  • access_token – The access token to use.

  • port – The port where the Web Clipper service is running. Default is 41184.

  • host – The host where the Web Clipper service is running. Default is localhost.

lazy_load() Iterator[Document][source]¶

A lazy loader for Documents.

load() List[Document][source]¶

Load data into Document objects.

load_and_split(text_splitter: Optional[TextSplitter] = None) List[Document]¶

Load Documents and split into chunks. Chunks are returned as Documents.

Parameters

text_splitter – TextSplitter instance to use for splitting documents. Defaults to RecursiveCharacterTextSplitter.

Returns

List of Documents.

Examples using JoplinLoader¶