mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-07 05:52:15 +00:00
community: Use default load() implementation in doc loaders (#18385)
Following https://github.com/langchain-ai/langchain/pull/18289
This commit is contained in:
committed by
GitHub
parent
42341bc787
commit
177f51c7bd
@@ -109,18 +109,6 @@ class OneNoteLoader(BaseLoader, BaseModel):
|
||||
else:
|
||||
request_url = ""
|
||||
|
||||
def load(self) -> List[Document]:
|
||||
"""
|
||||
Get pages from OneNote notebooks.
|
||||
|
||||
Returns:
|
||||
A list of Documents with attributes:
|
||||
- page_content
|
||||
- metadata
|
||||
- title
|
||||
"""
|
||||
return list(self.lazy_load())
|
||||
|
||||
def _get_page_content(self, page_id: str) -> str:
|
||||
"""Get page content from OneNote API"""
|
||||
request_url = self.onenote_api_base_url + f"/pages/{page_id}/content"
|
||||
|
Reference in New Issue
Block a user