ValueError – _description_
ImportError – _description_
Returns
_description_
Return type
List[Document]
paginate_request(retrieval_method: Callable, **kwargs: Any) → List[source]#
Paginate the various methods to retrieve groups of pages.
Unfortunately, due to page size, sometimes the Confluence API
doesn’t match the limit value. If limit is  >100 confluence
seems to cap the response to 100. Also, due to the Atlassian Python
package, we don’t get the “next” values from the “_links” key because
they only return the value from the results key. So here, the pagination
starts from 0 and goes until the max_pages, getting the limit number
of pages with each request. We have to manually check if there
are more docs based on the length of the returned list of pages, rather than
just checking for the presence of a next key in the response like this page
would have you do:
https://developer.atlassian.com/server/confluence/pagination-in-the-rest-api/
Parameters
retrieval_method (callable) – Function used to retrieve docs
Returns
List of documents
Return type
List
process_attachment(page_id: str, ocr_languages: Optional[str] = None) → List[str][source]#
process_doc(link: str) → str[source]#
process_image(link: str, ocr_languages: Optional[str] = None) → str[source]#
process_page(page: dict, include_attachments: bool, include_comments: bool, content_format: langchain.document_loaders.confluence.ContentFormat, ocr_languages: Optional[str] = None) → langchain.schema.Document[source]#
rtdocs_stable/api.python.langchain.com/en/stable/reference/modules/document_loaders.html