parameter to True in the instantiation of the loader.from langchain.document_loaders.sharepoint import SharePointLoaderloader = SharePointLoader(document_library_id="YOUR DOCUMENT LIBRARY ID", auth_with_token=True)üóÇÔ∏è Documents loader‚Äãüìë Loading documents from a Document Library Directory‚ÄãSharePointLoader can load documents from a specific folder within your Document Library. For instance, you want to load all documents that are stored at Documents/marketing folder within your Document Library.from langchain.document_loaders.sharepoint import SharePointLoaderloader = SharePointLoader(document_library_id="YOUR DOCUMENT LIBRARY ID", folder_path="Documents/marketing", auth_with_token=True)documents = loader.load()üìë Loading documents from a list of Documents IDs‚ÄãAnother possibility is to provide a list of object_id for each document you want to load. For that, you will need to query the Microsoft Graph API to find all the documents ID that you are interested in. This link provides a list of endpoints that will be helpful to retrieve the documents ID.For instance, to retrieve information about all objects that are stored at data/finance/ folder, you need make a request to: https://graph.microsoft.com/v1.0/drives/<document-library-id>/root:/data/finance:/children. Once you have the list of IDs that you are interested in, then you can instantiate the loader with the following parameters.from langchain.document_loaders.sharepoint import SharePointLoaderloader = SharePointLoader(document_library_id="YOUR DOCUMENT LIBRARY ID", object_ids=["ID_1", "ID_2"], auth_with_token=True)documents = loader.load()PreviousMicrosoft PowerPointNextMicrosoft WordPrerequisitesüßë Instructions for ingesting your documents from SharePoint Document Libraryüîë AuthenticationüóÇÔ∏è Documents loaderCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
Microsoft SharePoint is a website-based collaboration system that uses workflow applications, ‚Äúlist‚Äù databases, and other web parts and security features to empower business teams to work together developed by Microsoft.
Microsoft SharePoint is a website-based collaboration system that uses workflow applications, ‚Äúlist‚Äù databases, and other web parts and security features to empower business teams to work together developed by Microsoft. ->: parameter to True in the instantiation of the loader.from langchain.document_loaders.sharepoint import SharePointLoaderloader = SharePointLoader(document_library_id="YOUR DOCUMENT LIBRARY ID", auth_with_token=True)üóÇÔ∏è Documents loader‚Äãüìë Loading documents from a Document Library Directory‚ÄãSharePointLoader can load documents from a specific folder within your Document Library. For instance, you want to load all documents that are stored at Documents/marketing folder within your Document Library.from langchain.document_loaders.sharepoint import SharePointLoaderloader = SharePointLoader(document_library_id="YOUR DOCUMENT LIBRARY ID", folder_path="Documents/marketing", auth_with_token=True)documents = loader.load()üìë Loading documents from a list of Documents IDs‚ÄãAnother possibility is to provide a list of object_id for each document you want to load. For that, you will need to query the Microsoft Graph API to find all the documents ID that you are interested in. This link provides a list of endpoints that will be helpful to retrieve the documents ID.For instance, to retrieve information about all objects that are stored at data/finance/ folder, you need make a request to: https://graph.microsoft.com/v1.0/drives/<document-library-id>/root:/data/finance:/children. Once you have the list of IDs that you are interested in, then you can instantiate the loader with the following parameters.from langchain.document_loaders.sharepoint import SharePointLoaderloader = SharePointLoader(document_library_id="YOUR DOCUMENT LIBRARY ID", object_ids=["ID_1", "ID_2"], auth_with_token=True)documents = loader.load()PreviousMicrosoft PowerPointNextMicrosoft WordPrerequisitesüßë Instructions for ingesting your documents from SharePoint Document Libraryüîë AuthenticationüóÇÔ∏è Documents loaderCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.