llama-index readers microsoft_sharepoint integration
Project description
Microsoft SharePoint Reader
pip install llama-index-readers-microsoft-sharepoint
The loader loads the files from a folder in sharepoint site.
It also supports traversing recursively through the sub-folders.
Prequsites
App Authentication using Microsoft Entra ID(formerly Azure AD)
- You need to create an App Registration in Microsoft Entra ID. Refer here
- API Permissions for the created app.
- Microsoft Graph --> Application Permissions --> Sites.ReadAll (Grant Admin Consent)
- Microsoft Graph --> Application Permissions --> Files.ReadAll (Grant Admin Consent)
- Microsoft Graph --> Application Permissions --> BrowserSiteLists.Read.All (Grant Admin Consent)
More info on Microsoft Graph APIs - Refer here
Usage
To use this loader client_id
, client_secret
and tenant_id
of the registered app in Microsoft Azure Portal is required.
This loader loads the files present in a specific folder in sharepoint.
If the files are present in the Test
folder in SharePoint Site under root
directory, then the input for the loader for file_path
is Test
from llama_index.readers.microsoft_sharepoint import SharePointReader
loader = SharePointLoader(
client_id="<Client ID of the app>",
client_secret="<Client Secret of the app>",
tenant_id="<Tenant ID of the Microsoft Azure Directory>",
)
documents = loader.load_data(
sharepoint_site_name="<Sharepoint Site Name>",
sharepoint_folder_path="<Folder Path>",
recursive=True,
)
The loader doesn't access other components of the SharePoint Site
.
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for llama_index_readers_microsoft_sharepoint-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88abb0d4c2c04e920e968e0bcf2e4e861382132263330a7a6eedadf250963b72 |
|
MD5 | 7148da7efd1515a92a86c11e613beb35 |
|
BLAKE2b-256 | 7ab91afc5c583627947785d8bbd04872a61607c5e2c4e58be94ae6a4a22f7526 |
Close
Hashes for llama_index_readers_microsoft_sharepoint-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f1aa9acf777d0c1613533f6d886608dcd24e04e71dfd9c17b7d1834355ac6b1 |
|
MD5 | 582e12e7e128abeca53fb103a45ca5a9 |
|
BLAKE2b-256 | 1086855633b89808332e3f8656872d9caa85efdb32623a1540648a65871eae2e |