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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4599379445926672e6769c49c0749f473ad8f7c9680cf2f7251b71d5d41bad6 |
|
MD5 | d23aec8ff9f7f64473aca6db54af9a45 |
|
BLAKE2b-256 | 7a782aa8419a38c62834cbd58f45c804468991f876dd647cedc34de20ebd068a |
Close
Hashes for llama_index_readers_microsoft_sharepoint-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dfd540faa789d596a6dd564d0375109647f1f4f5cefdc05bb4d400f84c6b5ec |
|
MD5 | 10f8da0250fb66925b45d67e99a6f331 |
|
BLAKE2b-256 | d10814eee395c020e66438d662f47eaeb89521e0313431294287e91215e69bcf |