knowledge

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IntegrationActionType_Search domain.IntegrationActionType = "search"
)
View Source
const (
	KnowledgeIntegrationPeekable_Knowledges domain.IntegrationPeekableType = "knowledges"
)

Variables

View Source
var (
	Schema = schema
)

Functions

func NewKnowledgeIntegrationCreator

func NewKnowledgeIntegrationCreator(deps domain.IntegrationDeps) domain.IntegrationCreator

Types

type KnowledgeIntegration

type KnowledgeIntegration struct {
	// contains filtered or unexported fields
}

func (*KnowledgeIntegration) Execute

func (*KnowledgeIntegration) Peek

func (*KnowledgeIntegration) PeekKnowledges

func (i *KnowledgeIntegration) PeekKnowledges(ctx context.Context) (domain.PeekResult, error)

func (*KnowledgeIntegration) SearchKnowledge

func (i *KnowledgeIntegration) SearchKnowledge(ctx context.Context, params domain.IntegrationInput, item domain.Item) (domain.Item, error)

type KnowledgeIntegrationCreator

type KnowledgeIntegrationCreator struct {
	// contains filtered or unexported fields
}

func (*KnowledgeIntegrationCreator) CreateIntegration

type KnowledgeIntegrationDependencies

type KnowledgeIntegrationDependencies struct {
	ParameterBinder  domain.IntegrationParameterBinder
	KnowledgeManager domain.ExecutorKnowledgeManager
	WorkspaceID      string
}

type SearchKnowledgeParams

type SearchKnowledgeParams struct {
	KnowledgeBaseID     string  `json:"knowledge_base_id"`
	Query               string  `json:"query"`
	Limit               int     `json:"limit"`
	SimilarityThreshold float64 `json:"similarity_threshold"`
}

Jump to

Keyboard shortcuts

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