refactor(knowledge): Move the searchstore manager to app infra (#764)
This commit is contained in:
@@ -65,6 +65,10 @@ type VikingEmbeddingConfig struct {
|
||||
BuiltinEmbedding embedding.Embedder
|
||||
}
|
||||
|
||||
func NewVikingDBService(host string, region string, ak string, sk string, scheme string) *vikingdb.VikingDBService {
|
||||
return vikingdb.NewVikingDBService(host, region, ak, sk, scheme)
|
||||
}
|
||||
|
||||
func NewManager(config *ManagerConfig) (searchstore.Manager, error) {
|
||||
if config.Service == nil {
|
||||
return nil, fmt.Errorf("[NewManager] vikingdb service is nil")
|
||||
|
||||
Reference in New Issue
Block a user