knowledge

package
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	Pipeline *core.Pipeline
}

Factory 提供基于 core Pipeline 的 add/search 工具,不默认注册到 builtin registry。

func NewFactory

func NewFactory(p *core.Pipeline) *Factory

func NewFactoryPipeline

func NewFactoryPipeline(store vector.VectorStore, embedder vector.Embedder) (*Factory, error)

NewFactoryPipeline 是一个便捷构造:传入 store + embedder 直接创建 Pipeline。

func (*Factory) KnowledgeAddTool

func (f *Factory) KnowledgeAddTool() (tools.Tool, error)

KnowledgeAddTool 将文本写入核心管线。

func (*Factory) KnowledgeSearchTool

func (f *Factory) KnowledgeSearchTool() (tools.Tool, error)

KnowledgeSearchTool 在核心管线中执行向量检索。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL