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.3.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_microsoft_outlook-0.3.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebf3c04a41bed4e64dc30748c12d0352be56d959d87ccbfc6071d787694d2950 |
|
MD5 | ddd01250f844946aa8a008dc824bf626 |
|
BLAKE2b-256 | 826e0ed5cdd3961911519b052535326a540aec2b4e986449aacc9b659a40d297 |
File details
Details for the file llama_index_readers_microsoft_outlook-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_microsoft_outlook-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34dbd2c9a4a7c439623f93a91bbc5d44abf9f24cd626a7e16868f81fab5fd779 |
|
MD5 | ca6028acd8f555b5eac898b1c6198fb5 |
|
BLAKE2b-256 | ebe55795410c1f0efad11e3262509e4e1b2bc235d3e67f2745eb226330518c23 |