langchain.js
Preparing search index...
@langchain/core
document_loaders/base
DocumentLoader
Interface DocumentLoader
Interface that defines the methods for loading and splitting documents.
interface
DocumentLoader
{
load
()
:
Promise
<
Document
<
Record
<
string
,
any
>
>
[]
>
;
loadAndSplit
(
textSplitter
?:
BaseDocumentTransformer
<
DocumentInterface
<
Record
<
string
,
any
>
>
[]
,
DocumentInterface
<
Record
<
string
,
any
>
>
[]
,
>
,
)
:
Promise
<
Document
<
Record
<
string
,
any
>
>
[]
>
;
}
Implemented by
BaseDocumentLoader
Index
Methods
load
load
And
Split
Methods
load
load
()
:
Promise
<
Document
<
Record
<
string
,
any
>
>
[]
>
Returns
Promise
<
Document
<
Record
<
string
,
any
>
>
[]
>
load
And
Split
loadAndSplit
(
textSplitter
?:
BaseDocumentTransformer
<
DocumentInterface
<
Record
<
string
,
any
>
>
[]
,
DocumentInterface
<
Record
<
string
,
any
>
>
[]
,
>
,
)
:
Promise
<
Document
<
Record
<
string
,
any
>
>
[]
>
Parameters
Optional
textSplitter
:
BaseDocumentTransformer
<
DocumentInterface
<
Record
<
string
,
any
>
>
[]
,
DocumentInterface
<
Record
<
string
,
any
>
>
[]
,
>
Returns
Promise
<
Document
<
Record
<
string
,
any
>
>
[]
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
load
load
And
Split
langchain.js
Loading...
Interface that defines the methods for loading and splitting documents.