From 01fc69c1912d0701e1e7a36e5f91ef9241682700 Mon Sep 17 00:00:00 2001 From: Stefano Mosconi Date: Tue, 26 Mar 2024 02:08:01 +0200 Subject: [PATCH] community[patch]: expanding version in confluence loader (#19324) **Description:** Expanding version in all the Confluence API calls so to get when the page was last modified/created in all cases. **Issue:** #12812 **Twitter handle:** zzste --- .../langchain_community/document_loaders/confluence.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/community/langchain_community/document_loaders/confluence.py b/libs/community/langchain_community/document_loaders/confluence.py index e6445fb2795..c27a252bb56 100644 --- a/libs/community/langchain_community/document_loaders/confluence.py +++ b/libs/community/langchain_community/document_loaders/confluence.py @@ -316,7 +316,7 @@ class ConfluenceLoader(BaseLoader): limit=limit, max_pages=max_pages, status="any" if include_archived_content else "current", - expand=content_format.value, + expand=f"{content_format.value},version", ) yield from self.process_pages( pages, @@ -349,7 +349,7 @@ class ConfluenceLoader(BaseLoader): limit=limit, max_pages=max_pages, include_archived_spaces=include_archived_content, - expand=content_format.value, + expand=f"{content_format.value},version", ) yield from self.process_pages( pages,