Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

added confluence dataloader #135

Merged
merged 2 commits into from
Mar 21, 2023

Conversation

zywilliamli
Copy link
Contributor

adds a data connector for confluence, given a space id and/or a list of page ids

Copy link
Collaborator

@jerryjliu jerryjliu left a comment

Choose a reason for hiding this comment

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

amazing! a few minor comments


self.confluence = Confluence(url=base_url, username=user_name, password=api_token, cloud=True)

def load_data(self, space_id: Optional[str] = None, page_ids: Optional[List[str]] = []) -> List[Document]:
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: I'd set default to page_ids to None, and do page_ids = page_ids or [] within the function. There's some dangers to initializing an empty list in the function signature


## Usage

Here's an example usage of the NotionPageReader.
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: ConfluenceReader

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤦 thx

@jerryjliu jerryjliu merged commit 70985ed into run-llama:main Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants