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

Function NewCSV

documentloaders/csv.go:25–30  ·  view source on GitHub ↗

NewCSV creates a new csv loader with an io.Reader and optional column names for filtering.

(r io.Reader, columns ...string)

Source from the content-addressed store, hash-verified

23
24// NewCSV creates a new csv loader with an io.Reader and optional column names for filtering.
25func NewCSV(r io.Reader, columns ...string) CSV {
26 return CSV{
27 r: r,
28 columns: columns,
29 }
30}
31
32// Load reads from the io.Reader and returns a single document with the data.
33func (c CSV) Load(_ context.Context) ([]schema.Document, error) {

Callers 3

newLoaderMethod · 0.85
TestCSVLoaderFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestCSVLoaderFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…