Skip to content

Enhance metadata of sharepointLoader. #45

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

Closed

Conversation

rahul-trip
Copy link

@rahul-trip rahul-trip commented May 30, 2024

2 feature flags added in this PR:

  1. load_auth: if set to True, adds authorised identities to metadata
  2. load_extended_metadata, adds source, owner and full_path to metadata
    of SharePointLoader

loader = FileSystemBlobLoader(path=temp_dir)
yield from loader.yield_blobs()
for blob in loader.yield_blobs():
if not isinstance(blob.path, PurePath):
Copy link
Collaborator

Choose a reason for hiding this comment

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

I hope this change doesn't cause any disruptions.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@rahul-trip Is this portion fixing an existing bug unrelated to this PR? If yes, I would recommend to decouple this out and takes it up in a separate PR

Copy link
Author

@rahul-trip rahul-trip Jun 4, 2024

Choose a reason for hiding this comment

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

@Raj725
Nope, I dont think so.

@srics,
This is not a bug fix, instead we need id to get populated, hence added these metadata.

@rahul-trip rahul-trip force-pushed the rahul/pebblo/sharepointAuthorised branch from 218667e to e192127 Compare June 3, 2024 17:46
Signed-off-by: Rahul Tripathi <[email protected]>
@rahul-trip rahul-trip force-pushed the rahul/pebblo/sharepointAuthorised branch from 9da34a0 to f0e9e48 Compare June 4, 2024 04:39
@rahul-trip rahul-trip requested review from Raj725 and srics June 4, 2024 05:20
@rahul-trip rahul-trip force-pushed the rahul/pebblo/sharepointAuthorised branch 2 times, most recently from e912a70 to f0e9e48 Compare June 7, 2024 12:28
@rahul-trip rahul-trip changed the title Enable authorised identities in sharepointLoader. Enhance metadata of sharepointLoader. Jun 14, 2024
@rahul-trip rahul-trip force-pushed the rahul/pebblo/sharepointAuthorised branch from eda2a90 to e33c399 Compare June 19, 2024 21:36
@Raj725
Copy link
Collaborator

Raj725 commented Jun 25, 2024

Closing this PR since the changes are already merged into langchain-ai/master via PR-22248

@Raj725 Raj725 closed this Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants