MCPcopy Create free account
hub / github.com/astercloud/aster / KnowledgeSearchTool

Method KnowledgeSearchTool

pkg/tools/knowledge/factory.go:45–50  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

43
44// KnowledgeSearchTool 在核心管线中执行向量检索。
45func (f *Factory) KnowledgeSearchTool() (tools.Tool, error) {
46 if f.Pipeline == nil {
47 return nil, errors.New("knowledge tool: pipeline is nil")
48 }
49 return &searchTool{pipe: f.Pipeline}, nil
50}
51
52type addTool struct {
53 pipe *core.Pipeline

Callers 1

TestFactory_AddAndSearchFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestFactory_AddAndSearchFunction · 0.76