From a17a3638b5c9563119e3c20af7add8f4fe211cc7 Mon Sep 17 00:00:00 2001 From: chyroc Date: Mon, 8 Jan 2024 01:33:35 +0800 Subject: [PATCH] Docs: fix excel document loader typo (#15470) --- .../community/langchain_community/document_loaders/excel.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/community/langchain_community/document_loaders/excel.py b/libs/community/langchain_community/document_loaders/excel.py index 6660cfd71de..f1724280d16 100644 --- a/libs/community/langchain_community/document_loaders/excel.py +++ b/libs/community/langchain_community/document_loaders/excel.py @@ -13,8 +13,8 @@ class UnstructuredExcelLoader(UnstructuredFileLoader): Like other Unstructured loaders, UnstructuredExcelLoader can be used in both "single" and "elements" mode. If you use the loader in "elements" - mode, each sheet in the Excel file will be a an Unstructured Table - element. If you use the loader in "elements" mode, an + mode, each sheet in the Excel file will be an Unstructured Table + element. If you use the loader in "single" mode, an HTML representation of the table will be available in the "text_as_html" key in the document metadata. @@ -22,7 +22,7 @@ class UnstructuredExcelLoader(UnstructuredFileLoader): -------- from langchain_community.document_loaders.excel import UnstructuredExcelLoader - loader = UnstructuredExcelLoader("stanley-cups.xlsd", mode="elements") + loader = UnstructuredExcelLoader("stanley-cups.xlsx", mode="elements") docs = loader.load() """