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]

从`Joplin`加载笔记。

要使用此加载程序,您需要运行 Joplin,并启用 Web Clipper(在应用设置中查找“Web Clipper”)。

要获取访问令牌,您需要转到 Web Clipper 选项,然后在“高级选项”下找到访问令牌。

您可以在此处找到有关 Web Clipper 服务的更多信息: https://joplinapp.org/clipper/

参数: access_token:要使用的访问令牌。 port:Web Clipper 服务运行的端口。默认为41184。 host:Web Clipper 服务运行的主机。默认为localhost。

Methods

__init__([access_token, port, host])

参数: access_token:要使用的访问令牌。 port:Web Clipper 服务运行的端口。默认为41184。 host:Web Clipper 服务运行的主机。默认为localhost。

alazy_load()

一个用于文档的惰性加载器。

aload()

将数据加载到文档对象中。

lazy_load()

一个用于文档的惰性加载器。

load()

将数据加载到文档对象中。

load_and_split([text_splitter])

加载文档并分割成块。块作为文档返回。

Parameters
  • access_token (Optional[str]) –

  • port (int) –

  • host (str) –

Return type

None

__init__(access_token: Optional[str] = None, port: int = 41184, host: str = 'localhost') None[source]

参数: access_token:要使用的访问令牌。 port:Web Clipper 服务运行的端口。默认为41184。 host:Web Clipper 服务运行的主机。默认为localhost。

Parameters
  • access_token (Optional[str]) –

  • port (int) –

  • host (str) –

Return type

None

async alazy_load() AsyncIterator[Document]

一个用于文档的惰性加载器。

Return type

AsyncIterator[Document]

async aload() List[Document]

将数据加载到文档对象中。

Return type

List[Document]

lazy_load() Iterator[Document][source]

一个用于文档的惰性加载器。

Return type

Iterator[Document]

load() List[Document]

将数据加载到文档对象中。

Return type

List[Document]

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

加载文档并分割成块。块作为文档返回。

不要覆盖此方法。应该被视为已弃用!

参数:
text_splitter: 用于分割文档的TextSplitter实例。

默认为RecursiveCharacterTextSplitter。

返回:

文档列表。

Parameters

text_splitter (Optional[TextSplitter]) –

Return type

List[Document]

Examples using JoplinLoader