v0.3
v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js
LangChain.js
@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
load
And
Split
(
textSplitter
?
)
:
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.