You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/docs
MacanPN bce69ae43d
community[patch]: Changes to base_o365 and sharepoint document loaders (#20373)
## Description:
The PR introduces 3 changes:
1. added `recursive` property to `O365BaseLoader`. (To keep the behavior
unchanged, by default is set to `False`). When `recursive=True`,
`_load_from_folder()` also recursively loads all nested folders.
2. added `folder_id` to SharePointLoader.(similar to (this
PR)[https://github.com/langchain-ai/langchain/pull/10780] ) This
provides an alternative to `folder_path` that doesn't seem to reliably
work.
3. when none of `document_ids`, `folder_id`, `folder_path` is provided,
the loader fetches documets from root folder. Combined with
`recursive=True` this provides an easy way of loading all compatible
documents from SharePoint.

The PR contains the same logic as [this stale
PR](https://github.com/langchain-ai/langchain/pull/10780) by
@WaleedAlfaris. I'd like to ask his blessing for moving forward with
this one.

## Issue:
- As described in https://github.com/langchain-ai/langchain/issues/19938
and https://github.com/langchain-ai/langchain/pull/10780 the sharepoint
loader often does not seem to work with folder_path.
- Recursive loading of subfolders is a missing functionality

## Dependecies: None

Twitter handle:
@martintriska1 @WRhetoric

This is my first PR here, please be gentle :-)
Please review @baskaryan

---------

Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
6 months ago
..
api_reference Community: Updating Azure Retriever and Docs to be Azure AI Search instead of Azure Cognitive Search (#19925) 6 months ago
data 👥 Update LangChain people data (#19858) 6 months ago
docs community[patch]: Changes to base_o365 and sharepoint document loaders (#20373) 6 months ago
scripts docs: Update chat model providers include package information (#20336) 6 months ago
src docs: add Cohere to ChatModelTabs (#20386) 6 months ago
static docs: reorg and visual refresh (#19765) 6 months ago
.gitignore
.local_build.sh
.yarnrc.yml
README.md
babel.config.js
code-block-loader.js
docusaurus.config.js docs: fix title cap (#20048) 6 months ago
package.json
settings.ini
sidebars.js docs: `graphs` update (#19675) 6 months ago
vercel.json docs[patch]: Add missing redirects (#20076) 6 months ago
vercel_build.sh docs[patch]: Revert quarto update (#19880) 6 months ago
vercel_requirements.txt
yarn.lock

README.md

LangChain Documentation

For more information on contributing to our documentation, see the Documentation Contributing Guide