knowledge

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IKnowledgeBackend

type IKnowledgeBackend interface {
	ConfigureKnowledge(logger logger.ILogger) error
	Purge() error
	GetName() string
	UploadFiles(path []string) error
}

IKnowledge is the interface that wraps the basic methods to interact with a knowledge.

func NewBackendKnowledge

func NewBackendKnowledge(configuration KnowledgeConfiguration) (IKnowledgeBackend, error)

type KnowledgeConfiguration

type KnowledgeConfiguration struct {
	ActiveProvider string               `json:"activeProvider"`
	OpenAI         openai.Configuration `json:"openai"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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