feat: support separate knowledge bases for each agent
Also allow to export/import KB Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
@@ -45,6 +45,7 @@ type RAGDB interface {
|
||||
Store(s string) error
|
||||
Reset() error
|
||||
Search(s string, similarEntries int) ([]string, error)
|
||||
Count() int
|
||||
}
|
||||
|
||||
func New(opts ...Option) (*Agent, error) {
|
||||
@@ -235,6 +236,10 @@ func (a *Agent) Paused() bool {
|
||||
return a.pause
|
||||
}
|
||||
|
||||
func (a *Agent) Memory() RAGDB {
|
||||
return a.options.ragdb
|
||||
}
|
||||
|
||||
func (a *Agent) runAction(chosenAction Action, params action.ActionParams) (result string, err error) {
|
||||
for _, action := range a.systemInternalActions() {
|
||||
if action.Definition().Name == chosenAction.Definition().Name {
|
||||
|
||||
Reference in New Issue
Block a user