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

If you're not sure about the file name format, learn more about wheel file names.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_microsoft_outlook-0.4.1.tar.gz
Algorithm Hash digest
SHA256 f092950ba965cbfb0b127d8561d03791c0226e6c07ae0bc88e137b2e79c2ea14
MD5 49a4f27d347f051b9eb8d5911822e621
BLAKE2b-256 e318c58bcda17fc9af269d0261112e5ed695561f3898816617d42fa9ff67c5bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_microsoft_outlook-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e3681ca47ee2a85bf5cdb6be11170c84aa27faef75cf9bf4a1e4c62038b608d
MD5 20236b3c04774fb01e6629a740a3f8a0
BLAKE2b-256 f0089e4247e67c23a9c6eceee0eac9b1cfa23711f72be3ab361222e36c5c5c91

See more details on using hashes here.

Supported by

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