Loader is the interface for loading and splitting documents from a source.
| 9 | |
| 10 | // Loader is the interface for loading and splitting documents from a source. |
| 11 | type Loader interface { |
| 12 | // Load loads from a source and returns documents. |
| 13 | Load(ctx context.Context) ([]schema.Document, error) |
| 14 | // LoadAndSplit loads from a source and splits the documents using a text splitter. |
| 15 | LoadAndSplit(ctx context.Context, splitter textsplitter.TextSplitter) ([]schema.Document, error) |
| 16 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…