Jesse Zhang a70e60c94b
Remote reader (#17)
* Small bug fixes

* Remote loader for pages/files

* Add to library
2023-02-09 17:27:20 -08:00
..
2023-02-09 17:27:20 -08:00
2023-02-06 23:54:33 -08:00
2023-02-06 23:54:33 -08:00
2023-02-06 23:54:33 -08:00

Mailbox Loader

This loader extracts the text from a local .mbox dump of emails.

Usage

To use this loader, you need to pass in a Path to a local file.

from pathlib import Path
from gpt_index import download_loader

MboxReader = download_loader("MboxReader")
documents = MboxReader().load_data(file='./email.mbox') # Returns list of documents

This loader is designed to be used as a way to load data into GPT Index and/or subsequently used as a Tool in a LangChain Agent. See here for examples.