mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-19 05:13:46 +00:00
Docs: fix excel document loader typo (#15470)
This commit is contained in:
parent
1bfb1725a1
commit
a17a3638b5
@ -13,8 +13,8 @@ class UnstructuredExcelLoader(UnstructuredFileLoader):
|
|||||||
Like other
|
Like other
|
||||||
Unstructured loaders, UnstructuredExcelLoader can be used in both
|
Unstructured loaders, UnstructuredExcelLoader can be used in both
|
||||||
"single" and "elements" mode. If you use the loader in "elements"
|
"single" and "elements" mode. If you use the loader in "elements"
|
||||||
mode, each sheet in the Excel file will be a an Unstructured Table
|
mode, each sheet in the Excel file will be an Unstructured Table
|
||||||
element. If you use the loader in "elements" mode, an
|
element. If you use the loader in "single" mode, an
|
||||||
HTML representation of the table will be available in the
|
HTML representation of the table will be available in the
|
||||||
"text_as_html" key in the document metadata.
|
"text_as_html" key in the document metadata.
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ class UnstructuredExcelLoader(UnstructuredFileLoader):
|
|||||||
--------
|
--------
|
||||||
from langchain_community.document_loaders.excel import UnstructuredExcelLoader
|
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()
|
docs = loader.load()
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user