langchain_community.document_loaders.evernote.EverNoteLoader¶

class langchain_community.document_loaders.evernote.EverNoteLoader(file_path: str, load_single_document: bool = True)[source]¶

Load from EverNote.

Loads an EverNote notebook export file e.g. my_notebook.enex into Documents. Instructions on producing this file can be found at https://help.evernote.com/hc/en-us/articles/209005557-Export-notes-and-notebooks-as-ENEX-or-HTML

Currently only the plain text in the note is extracted and stored as the contents of the Document, any non content metadata (e.g. ‘author’, ‘created’, ‘updated’ etc. but not ‘content-raw’ or ‘resource’) tags on the note will be extracted and stored as metadata on the Document.

Parameters
  • file_path (str) – The path to the notebook export with a .enex extension

  • load_single_document (bool) – Whether or not to concatenate the content of all notes into a single long Document.

  • True (If this is set to) – the ‘source’ which contains the file name of the export.

Initialize with file path.

Methods

__init__(file_path[, load_single_document])

Initialize with file path.

alazy_load()

A lazy loader for Documents.

lazy_load()

Load documents from EverNote export file.

load()

Load data into Document objects.

load_and_split([text_splitter])

Load Documents and split into chunks.

__init__(file_path: str, load_single_document: bool = True)[source]¶

Initialize with file path.

Parameters
  • file_path (str) –

  • load_single_document (bool) –

async alazy_load() AsyncIterator[Document]¶

A lazy loader for Documents.

Return type

AsyncIterator[Document]

lazy_load() Iterator[Document][source]¶

Load documents from EverNote export file.

Return type

Iterator[Document]

load() List[Document]¶

Load data into Document objects.

Return type

List[Document]

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

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

Do not override this method. It should be considered to be deprecated!

Parameters

text_splitter (Optional[TextSplitter]) – TextSplitter instance to use for splitting documents. Defaults to RecursiveCharacterTextSplitter.

Returns

List of Documents.

Return type

List[Document]

Examples using EverNoteLoader¶