Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Community][minor]: Updating source path, and file path for SharePoint loader in PebbloSafeLoader #25592

Conversation

dristysrivastava
Copy link
Contributor

  • Description: Updating source path and file path in Pebblo safe loader for SharePoint apps during loading
  • Issue: NA
  • Dependencies: NA
  • Tests: NA
  • Docs NA

Copy link

vercel bot commented Aug 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Aug 26, 2024 11:29am

@dristysrivastava dristysrivastava changed the title Updating source path and file path in Pebblo safe loader for SharePoi… [Community][minor]: Updating source path, and file path for SharePoint loader in PebbloSafeLoader Aug 20, 2024
@dristysrivastava dristysrivastava marked this pull request as ready for review August 20, 2024 19:07
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. community Related to langchain-community Ɑ: doc loader Related to document loader module (not documentation) 🤖:improvement Medium size change to existing code to handle new use-cases labels Aug 20, 2024
@hwchase17
Copy link
Contributor

has some merge conflicts, otherwise lgtm

@dristysrivastava
Copy link
Contributor Author

@hwchase17 Fixed the merge conflicts. Kindly review

docs_with_id: List[IndexedDocument], source_path: str
docs_with_id: List[IndexedDocument],
source_path: str,
loader_details: dict,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be a kwarg for backwards compatibility?

doc_metadata["full_path"] = get_full_path(
doc_metadata.get(
"full_path", doc_metadata.get("source", self.source_path)
if self.loader.__class__.__name__ == "SharePointLoader":
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does if isinstance(self.loader, SharePointLoader) work here?

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Aug 26, 2024
@ccurme ccurme merged commit fbb4761 into langchain-ai:master Aug 26, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Related to langchain-community Ɑ: doc loader Related to document loader module (not documentation) 🤖:improvement Medium size change to existing code to handle new use-cases lgtm PR looks good. Use to confirm that a PR is ready for merging. size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants