mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-18 15:49:15 +03:00
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
This commit is contained in:
1 parent
08b769d539
commit
01fc69c191
1 file changed
+2
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user