Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IngestRequest ¶
type IngestRequest struct {
ID string // 文档 ID,可为空则自动生成
Text string // 原文文本
Namespace string // 命名空间,可为空使用默认
Metadata map[string]any // 自定义元数据
}
IngestRequest 描述一次知识摄入请求(轻量模型)。
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline 提供最小 ingest/search 能力,不依赖高级特性。
type PipelineConfig ¶
type PipelineConfig struct {
Store vector.VectorStore
Embedder vector.Embedder
Namespace string
DefaultTopK int
}
PipelineConfig 轻量 RAG 管线配置。
Click to show internal directories.
Click to hide internal directories.