1 Star 0 Fork 0

Survivor_zzc / langchaingo

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
documentloaders.go 514 Bytes
Copy Edit Raw Blame History
Survivor_zzc authored 2023-10-24 17:21 . package name
package documentloaders
import (
"context"
"gitee.com/zzcadmin/langchaingo/schema"
"gitee.com/zzcadmin/langchaingo/textsplitter"
)
// Loader is the interface for loading and splitting documents from a source.
type Loader interface {
// Loads loads from a source and returns documents.
Load(context.Context) ([]schema.Document, error)
// LoadAndSplit loads from a source and splits the documents using a text splitter.
LoadAndSplit(context.Context, textsplitter.TextSplitter) ([]schema.Document, error)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/zzcadmin/langchaingo.git
git@gitee.com:zzcadmin/langchaingo.git
zzcadmin
langchaingo
langchaingo
v0.2.7

Search

344bd9b3 5694891 D2dac590 5694891