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"`
}
Click to show internal directories.
Click to hide internal directories.