v0.3
v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js
LangChain.js
@langchain/community
document_loaders/web/html
WebBaseLoader
Interface WebBaseLoader
Interface that defines the methods for loading and splitting documents.
interface
WebBaseLoader
{
caller
:
AsyncCaller
;
headers
?:
HeadersInit
;
textDecoder
?:
TextDecoder
;
timeout
:
number
;
load
(
)
:
Promise
<
Document
<
Record
<
string
,
any
>
>
[]
>
;
loadAndSplit
(
textSplitter
?:
BaseDocumentTransformer
<
DocumentInterface
<
Record
<
string
,
any
>
>
[]
,
DocumentInterface
<
Record
<
string
,
any
>
>
[]
>
)
:
Promise
<
Document
<
Record
<
string
,
any
>
>
[]
>
;
}
Hierarchy (
view full
)
DocumentLoader
WebBaseLoader
Implemented by
CheerioWebBaseLoader
HTMLWebBaseLoader
Index
Properties
caller
headers?
text
Decoder?
timeout
Methods
load
load
And
Split
Properties
caller
caller
:
AsyncCaller
Optional
headers
headers
?:
HeadersInit
Optional
text
Decoder
text
Decoder
?:
TextDecoder
timeout
timeout
:
number
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
Properties
caller
headers
text
Decoder
timeout
Methods
load
load
And
Split
LangChain.js
Loading...
Interface that defines the methods for loading and splitting documents.