langchain.document_loaders.evernote.EverNoteLoader

class langchain.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.

lazy_load()

A lazy loader for Documents.

load()

Load documents from EverNote export file.

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.

lazy_load() Iterator[Document]

A lazy loader for Documents.

load() List[Document][source]

Load documents from EverNote export file.

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 EverNoteLoader