LoadAndSplit transcribes the audio data and splits it into multiple documents using a text splitter.
(ctx context.Context, splitter textsplitter.TextSplitter)
| 239 | // LoadAndSplit transcribes the audio data and splits it into multiple documents |
| 240 | // using a text splitter. |
| 241 | func (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 | } |
nothing calls this directly
no test coverage detected