MCPcopy Create free account
hub / github.com/tmc/langchaingo / NewHTML

Function NewHTML

documentloaders/html.go:22–24  ·  view source on GitHub ↗

NewHTML creates a new html loader with an io.Reader.

(r io.Reader)

Source from the content-addressed store, hash-verified

20
21// NewHTML creates a new html loader with an io.Reader.
22func NewHTML(r io.Reader) HTML {
23 return HTML{r}
24}
25
26// Load reads from the io.Reader and returns a single document with the data.
27func (h HTML) Load(_ context.Context) ([]schema.Document, error) {

Callers 2

TestHTMLLoaderFunction · 0.85
newLoaderMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestHTMLLoaderFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…