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

Method LoadAndSplit

documentloaders/assemblyai.go:241–248  ·  view source on GitHub ↗

LoadAndSplit transcribes the audio data and splits it into multiple documents using a text splitter.

(ctx context.Context, splitter textsplitter.TextSplitter)

Source from the content-addressed store, hash-verified

239// LoadAndSplit transcribes the audio data and splits it into multiple documents
240// using a text splitter.
241func (a *AssemblyAIAudioTranscriptLoader) LoadAndSplit(ctx context.Context, splitter textsplitter.TextSplitter) ([]schema.Document, error) {
242 docs, err := a.Load(ctx)
243 if err != nil {
244 return nil, err
245 }
246
247 return textsplitter.SplitDocuments(splitter, docs)
248}

Callers

nothing calls this directly

Calls 2

LoadMethod · 0.95
SplitDocumentsFunction · 0.92

Tested by

no test coverage detected