Skip to main content

llama-index readers microsoft outlook integration

Project description

Outlook Local Calendar Loader

pip install llama-index-readers-microsoft-outlook

This loader reads your past and upcoming Calendar events from your local Outlook .ost or .pst and parses the relevant info into Documents.

It runs on Windows only and has only been tested with Windows 11. It has been designed to have a supoerset of the functionality of the Google Calendar reader.

Usage

Here's an example usage of the OutlookCalendar Reader. It will retrieve up to 100 future events, unless an optional number_of_results argument is passed. It will also retrieve only future events, unless an optional start_date argument is passed. Optionally events can be restricted to those which occur on or before a specific date by specifying the optional end-date parameter. By default, end-date is 2199-01-01.

It always returns Start, End, Subject, Location, and Organizer attributes and optionally returns additional attributes specified in the more_attributes parameter, which, if specified, must be a list of strings eg. ['Body','someotherattribute',...]. Attributes which don't exist in a calendar entry are ignored without warning.

from llama_index.readers.microsoft_outlook import OutlookLocalCalendarReader

loader = OutlookCalendarReader()
documents = loader.load_data()

Example

This loader is designed to be used as a way to load data into LlamaIndex.

LlamaIndex

from llama_index.core import VectorStoreIndex, download_loader

from llama_index.readers.microsoft_outlook import OutlookLocalCalendarReader

loader = OutlookCalendarReader(
    start_date="2022-01-01", number_of_documents=1000
)

documents = loader.load_data()
index = VectorStoreIndex.from_documents(documents)
index.query("When did I last see George Guava? When do I see him again?")

Note: it is actually better to give a structured prompt with this data and be sure to it is clear what today's date is and whether you want any data besides the indexed data used in answering the prompt.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file llama_index_readers_microsoft_outlook-0.2.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_microsoft_outlook-0.2.0.tar.gz
Algorithm Hash digest
SHA256 24698bf0eb318c551e7228c004dc1bf101d2d4fe155d3e99a50d43df935ee125
MD5 35237a9408fed63afca94dcb732ce9bb
BLAKE2b-256 4ad38898fd21ca0f30c2251d1d941fe48deb8245b5598af277142de0d5c63ee0

See more details on using hashes here.

File details

Details for the file llama_index_readers_microsoft_outlook-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_microsoft_outlook-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f24e2cdd62fc2c7953da276e857d2edec578c0796a241c4717294105ef1568c2
MD5 d86b365dd296a3c5ab696baef7ca9bf3
BLAKE2b-256 23e708319196c321a799a1b26a9609fd28eaba32e18aa0a9ea5336dbcca0350c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page