Skip to content

The agent engineering platform.

Update arxiv.py with get_summaries_as_docs inside of Arxivloader (#14953)

Archan Ghoshaffa3e755a9d
diff --git a/libs/community/langchain_community/document_loaders/arxiv.py b/libs/community/langchain_community/document_loaders/arxiv.py
index 968d5dcfc3..811d2b605f 100644
--- a/libs/community/langchain_community/document_loaders/arxiv.py
+++ b/libs/community/langchain_community/document_loaders/arxiv.py
@@ -25,3 +25,6 @@ class ArxivLoader(BaseLoader):
def load(self) -> List[Document]:
return self.client.load(self.query)
+
+ def get_summaries_as_docs(self) -> List[Document]:
+ return self.client.get_summaries_as_docs(self.query)